Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/QOutProcessor.java @ 9556:9b8e8fc1f408
Use facetName in all processors as themeType for legend aggregation.
author | gernotbelger |
---|---|
date | Tue, 23 Oct 2018 16:26:58 +0200 |
parents | 740d65e4aa14 |
children |
comparison
equal
deleted
inserted
replaced
9555:ef5754ba5573 | 9556:9b8e8fc1f408 |
---|---|
38 | 38 |
39 @Override | 39 @Override |
40 public void doOut(final DiagramGenerator generator, final ArtifactAndFacet bundle, final ThemeDocument theme, final boolean visible) { | 40 public void doOut(final DiagramGenerator generator, final ArtifactAndFacet bundle, final ThemeDocument theme, final boolean visible) { |
41 final CallContext context = generator.getContext(); | 41 final CallContext context = generator.getContext(); |
42 final Object data = bundle.getData(context); | 42 final Object data = bundle.getData(context); |
43 final XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), theme); | 43 final XYSeries series = new StyledXYSeries(bundle.getFacetName(), bundle.getFacetDescription(), theme); |
44 final String facetName = bundle.getFacetName(); | 44 final String facetName = bundle.getFacetName(); |
45 | 45 |
46 if (facetName.equals(FacetTypes.FLOW_VELOCITY_DISCHARGE)) { | 46 if (facetName.equals(FacetTypes.FLOW_VELOCITY_DISCHARGE)) { |
47 if (data instanceof FlowVelocityData) { | 47 if (data instanceof FlowVelocityData) { |
48 final FlowVelocityData fData = (FlowVelocityData) data; | 48 final FlowVelocityData fData = (FlowVelocityData) data; |
63 @Override | 63 @Override |
64 public void doOut(final XYChartGenerator generator, final ArtifactAndFacet bundle, final ThemeDocument theme, final boolean visible, final int index) { | 64 public void doOut(final XYChartGenerator generator, final ArtifactAndFacet bundle, final ThemeDocument theme, final boolean visible, final int index) { |
65 final CallContext context = generator.getContext(); | 65 final CallContext context = generator.getContext(); |
66 final WQKms wqkms = (WQKms) bundle.getData(context); | 66 final WQKms wqkms = (WQKms) bundle.getData(context); |
67 | 67 |
68 final XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), theme); | 68 final XYSeries series = new StyledXYSeries(bundle.getFacetName(),bundle.getFacetDescription(), theme); |
69 | 69 |
70 StyledSeriesBuilder.addStepPointsKmQ(series, wqkms); | 70 StyledSeriesBuilder.addStepPointsKmQ(series, wqkms); |
71 | 71 |
72 generator.addAxisSeries(series, index, visible); | 72 generator.addAxisSeries(series, index, visible); |
73 | 73 |