# HG changeset patch # User Felix Wolfsteller # Date 1340142671 0 # Node ID 6c91e05a5f51e4a778d78e8458e37d218c28fc4a # Parent c04408ec4c9c7686bf0440ff11d7e0f7517b7437 Fix issue681. flys-artifacts/trunk@4713 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r c04408ec4c9c -r 6c91e05a5f51 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Tue Jun 19 19:30:22 2012 +0000 +++ b/flys-artifacts/ChangeLog Tue Jun 19 21:51:11 2012 +0000 @@ -1,3 +1,11 @@ +2012-06-19 Felix Wolfsteller + + Fix issue681 (wrong vertical lines in duration curve q-mainvalues on + second y-axis). + + * src/main/java/de/intevation/flys/exports/XYChartGenerator.java: + Fix vertical line if on second y-axis. + 2012-06-19 Felix Wolfsteller * src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java: diff -r c04408ec4c9c -r 6c91e05a5f51 flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Tue Jun 19 19:30:22 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Tue Jun 19 21:51:11 2012 +0000 @@ -930,8 +930,8 @@ XYLineAnnotation hitLineAnnotation = createStickyLineAnnotation( StickyAxisAnnotation.SimpleAxis.X_AXIS, - annotation.getPos(), annotation.getHitPoint(), - area, lineStyle); + annotation.getHitPoint(), annotation.getPos(),// annotation.getHitPoint(), + area2, lineStyle); plot.getRenderer(rendererIndex).addAnnotation(hitLineAnnotation, org.jfree.ui.Layer.BACKGROUND); } @@ -940,13 +940,13 @@ createStickyLineAnnotation( StickyAxisAnnotation.SimpleAxis.Y_AXIS2, annotation.getPos(), annotation.getHitPoint(), - area, lineStyle); + area2, lineStyle); plot.getRenderer(rendererIndex).addAnnotation(lineBackAnnotation, org.jfree.ui.Layer.BACKGROUND); } } } - else { + else { // Stick to the left y-axis. textAnnotation = new CollisionFreeXYTextAnnotation( annotation.getText(), area.ofLeft(TEXT_OFF), annotation.getPos()); textAnnotation.setRotationAnchor(TextAnchor.CENTER_LEFT);