Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 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 | 4a76da133144 |
children | a08538e21b55 |
comparison
equal
deleted
inserted
replaced
3113:c04408ec4c9c | 3114:6c91e05a5f51 |
---|---|
928 // New line annotation to hit curve. | 928 // New line annotation to hit curve. |
929 if (ThemeUtil.parseShowVerticalLine(theme)) { | 929 if (ThemeUtil.parseShowVerticalLine(theme)) { |
930 XYLineAnnotation hitLineAnnotation = | 930 XYLineAnnotation hitLineAnnotation = |
931 createStickyLineAnnotation( | 931 createStickyLineAnnotation( |
932 StickyAxisAnnotation.SimpleAxis.X_AXIS, | 932 StickyAxisAnnotation.SimpleAxis.X_AXIS, |
933 annotation.getPos(), annotation.getHitPoint(), | 933 annotation.getHitPoint(), annotation.getPos(),// annotation.getHitPoint(), |
934 area, lineStyle); | 934 area2, lineStyle); |
935 plot.getRenderer(rendererIndex).addAnnotation(hitLineAnnotation, | 935 plot.getRenderer(rendererIndex).addAnnotation(hitLineAnnotation, |
936 org.jfree.ui.Layer.BACKGROUND); | 936 org.jfree.ui.Layer.BACKGROUND); |
937 } | 937 } |
938 if (ThemeUtil.parseShowHorizontalLine(theme)) { | 938 if (ThemeUtil.parseShowHorizontalLine(theme)) { |
939 XYLineAnnotation lineBackAnnotation = | 939 XYLineAnnotation lineBackAnnotation = |
940 createStickyLineAnnotation( | 940 createStickyLineAnnotation( |
941 StickyAxisAnnotation.SimpleAxis.Y_AXIS2, | 941 StickyAxisAnnotation.SimpleAxis.Y_AXIS2, |
942 annotation.getPos(), annotation.getHitPoint(), | 942 annotation.getPos(), annotation.getHitPoint(), |
943 area, lineStyle); | 943 area2, lineStyle); |
944 plot.getRenderer(rendererIndex).addAnnotation(lineBackAnnotation, | 944 plot.getRenderer(rendererIndex).addAnnotation(lineBackAnnotation, |
945 org.jfree.ui.Layer.BACKGROUND); | 945 org.jfree.ui.Layer.BACKGROUND); |
946 } | 946 } |
947 } | 947 } |
948 } | 948 } |
949 else { | 949 else { // Stick to the left y-axis. |
950 textAnnotation = new CollisionFreeXYTextAnnotation( | 950 textAnnotation = new CollisionFreeXYTextAnnotation( |
951 annotation.getText(), area.ofLeft(TEXT_OFF), annotation.getPos()); | 951 annotation.getText(), area.ofLeft(TEXT_OFF), annotation.getPos()); |
952 textAnnotation.setRotationAnchor(TextAnchor.CENTER_LEFT); | 952 textAnnotation.setRotationAnchor(TextAnchor.CENTER_LEFT); |
953 textAnnotation.setTextAnchor(TextAnchor.CENTER_LEFT); | 953 textAnnotation.setTextAnchor(TextAnchor.CENTER_LEFT); |
954 lineAnnotation = createLeftStickAnnotation(area, annotation.getPos(), lineStyle); | 954 lineAnnotation = createLeftStickAnnotation(area, annotation.getPos(), lineStyle); |