changeset 3114:6c91e05a5f51

Fix issue681. flys-artifacts/trunk@4713 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 19 Jun 2012 21:51:11 +0000
parents c04408ec4c9c
children 5482a8a48a3f
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java
diffstat 2 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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	<felix.wolfsteller@intevation.de>
+
+	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	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.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);

http://dive4elements.wald.intevation.org