comparison artifacts/src/main/java/org/dive4elements/river/exports/DurationCurveGenerator.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
181 * @param theme 181 * @param theme
182 */ 182 */
183 protected void doWOut(final WQDay wqdays, final ArtifactAndFacet aaf, final ThemeDocument theme, final boolean visible) { 183 protected void doWOut(final WQDay wqdays, final ArtifactAndFacet aaf, final ThemeDocument theme, final boolean visible) {
184 log.debug("DurationCurveGenerator.doWOut"); 184 log.debug("DurationCurveGenerator.doWOut");
185 185
186 final XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme); 186 final XYSeries series = new StyledXYSeries(aaf.getFacetName(), aaf.getFacetDescription(), theme);
187 187
188 final int size = wqdays.size(); 188 final int size = wqdays.size();
189 for (int i = 0; i < size; i++) { 189 for (int i = 0; i < size; i++) {
190 final int day = wqdays.getDay(i); 190 final int day = wqdays.getDay(i);
191 final double w = wqdays.getW(i); 191 final double w = wqdays.getW(i);
197 } 197 }
198 198
199 protected void doPointOut(final Point2D point, final ArtifactAndFacet aandf, final ThemeDocument theme, final boolean visible) { 199 protected void doPointOut(final Point2D point, final ArtifactAndFacet aandf, final ThemeDocument theme, final boolean visible) {
200 log.debug("DurationCurveGenerator.doPointOut"); 200 log.debug("DurationCurveGenerator.doPointOut");
201 201
202 final XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme); 202 final XYSeries series = new StyledXYSeries(aandf.getFacetName(), aandf.getFacetDescription(), theme);
203 203
204 series.add(point.getX(), point.getY()); 204 series.add(point.getX(), point.getY());
205 205
206 addAxisSeries(series, YAXIS.W.idx, visible); 206 addAxisSeries(series, YAXIS.W.idx, visible);
207 } 207 }
214 * @param theme 214 * @param theme
215 */ 215 */
216 protected void doQOut(final WQDay wqdays, final ArtifactAndFacet aaf, final ThemeDocument theme, final boolean visible) { 216 protected void doQOut(final WQDay wqdays, final ArtifactAndFacet aaf, final ThemeDocument theme, final boolean visible) {
217 log.debug("DurationCurveGenerator.doQOut"); 217 log.debug("DurationCurveGenerator.doQOut");
218 218
219 final XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme); 219 final XYSeries series = new StyledXYSeries(aaf.getFacetName(), aaf.getFacetDescription(), theme);
220 220
221 final int size = wqdays.size(); 221 final int size = wqdays.size();
222 for (int i = 0; i < size; i++) { 222 for (int i = 0; i < size; i++) {
223 final int day = wqdays.getDay(i); 223 final int day = wqdays.getDay(i);
224 final double q = wqdays.getQ(i); 224 final double q = wqdays.getQ(i);

http://dive4elements.wald.intevation.org