comparison artifacts/src/main/java/org/dive4elements/river/exports/process/MiscDischargeProcessor.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 1cc7653ca84f
children
comparison
equal deleted inserted replaced
9555:ef5754ba5573 9556:9b8e8fc1f408
141 ArtifactAndFacet bundle, 141 ArtifactAndFacet bundle,
142 ThemeDocument theme, 142 ThemeDocument theme,
143 boolean visible, 143 boolean visible,
144 int axisIndex 144 int axisIndex
145 ) { 145 ) {
146 XYSeries series = new StyledXYSeries( 146 XYSeries series = new StyledXYSeries(bundle.getFacetName(),
147 bundle.getFacetDescription(), theme); 147 bundle.getFacetDescription(), theme);
148 Object wq = bundle.getData(generator.getContext()); 148 Object wq = bundle.getData(generator.getContext());
149 if (wq instanceof double[][]) { 149 if (wq instanceof double[][]) {
150 double [][] data = (double [][]) wq; 150 double [][] data = (double [][]) wq;
151 StyledSeriesBuilder.addPoints(series, data, true); 151 StyledSeriesBuilder.addPoints(series, data, true);
165 boolean visible, 165 boolean visible,
166 int axidx 166 int axidx
167 ) { 167 ) {
168 log.debug("doWQKmsPointOut"); 168 log.debug("doWQKmsPointOut");
169 String title = bundle.getFacetDescription(); 169 String title = bundle.getFacetDescription();
170 XYSeries series = new StyledXYSeries( 170 XYSeries series = new StyledXYSeries(bundle.getFacetName(),
171 title, 171 title,
172 theme); 172 theme);
173 173
174 double[] kms = wqkms.getKms(); 174 double[] kms = wqkms.getKms();
175 175
300 double[][] data, 300 double[][] data,
301 ArtifactAndFacet bundle, 301 ArtifactAndFacet bundle,
302 ThemeDocument theme, 302 ThemeDocument theme,
303 boolean visible 303 boolean visible
304 ) { 304 ) {
305 XYSeries series = new StyledXYSeries( 305 XYSeries series = new StyledXYSeries(bundle.getFacetName(),
306 bundle.getFacetDescription(), theme); 306 bundle.getFacetDescription(), theme);
307 StyledSeriesBuilder.addPoints(series, data, true); 307 StyledSeriesBuilder.addPoints(series, data, true);
308 generator.addAxisSeries(series, axisName, visible); 308 generator.addAxisSeries(series, axisName, visible);
309 } 309 }
310 310
316 ThemeDocument theme, 316 ThemeDocument theme,
317 boolean visible 317 boolean visible
318 ) { 318 ) {
319 log.debug("doWQKmsPointOut"); 319 log.debug("doWQKmsPointOut");
320 String title = bundle.getFacetDescription(); 320 String title = bundle.getFacetDescription();
321 XYSeries series = new StyledXYSeries( 321 XYSeries series = new StyledXYSeries(bundle.getFacetName(),
322 title, 322 title,
323 theme); 323 theme);
324 324
325 double[] kms = wqkms.getKms(); 325 double[] kms = wqkms.getKms();
326 326

http://dive4elements.wald.intevation.org