Mercurial > dive4elements > river
changeset 6438:b9c5bb510b39
FixWQCurveGenerator: Remove second y axis (Q?), reference axis by enums id.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 26 Jun 2013 14:54:48 +0200 |
parents | 0341504e9deb |
children | b02f3a948858 |
files | artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java Wed Jun 26 14:42:16 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java Wed Jun 26 14:54:48 2013 +0200 @@ -94,8 +94,7 @@ public static final double EPSILON = 0.001d; public static enum YAXIS { - W(0), - Q(1); + W(0); public int idx; private YAXIS(int c) { idx = c; @@ -219,7 +218,7 @@ qwd.getW()); textAnnos.add(anno); - addAxisSeries(series, 0, visible); + addAxisSeries(series, YAXIS.W.idx, visible); if(visible && ThemeUtil.parseShowPointLabel(doc)) { RiverAnnotation flysAnno = new RiverAnnotation(null, null, null, doc); flysAnno.setTextAnnotations(textAnnos); @@ -252,7 +251,7 @@ qwd.getW()); textAnnos.add(anno); - addAxisSeries(series, 0, visible); + addAxisSeries(series, YAXIS.W.idx, visible); if(visible && ThemeUtil.parseShowPointLabel(doc)) { RiverAnnotation flysAnno = new RiverAnnotation(null, null, null, doc); flysAnno.setTextAnnotations(textAnnos); @@ -317,7 +316,7 @@ 0.0 , // start maxQ); // end - addAxisSeries(series, 0, visible); + addAxisSeries(series, YAXIS.W.idx, visible); } else { logger.warn("doWQCurveOut: maxQ <= 0"); @@ -529,7 +528,7 @@ textAnnos.add(anno); } - addAxisSeries(series, 0, visible); + addAxisSeries(series, YAXIS.W.idx, visible); if (visible && ThemeUtil.parseShowPointLabel(theme)) { RiverAnnotation flysAnno = new RiverAnnotation(null, null, null, theme);