Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 2193:73490b828a90
Manual Point Theming improved.
flys-artifacts/trunk@3804 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 27 Jan 2012 14:21:51 +0000 |
parents | fc86fcfe503e |
children | e2124ca11adb |
comparison
equal
deleted
inserted
replaced
2192:922c672ec6c1 | 2193:73490b828a90 |
---|---|
1184 addStickyAnnotation(sta, plot, area, lineStyle, textStyle); | 1184 addStickyAnnotation(sta, plot, area, lineStyle, textStyle); |
1185 } | 1185 } |
1186 | 1186 |
1187 // Other Text Annotations. | 1187 // Other Text Annotations. |
1188 for (XYTextAnnotation ta: fa.getTextAnnotations()) { | 1188 for (XYTextAnnotation ta: fa.getTextAnnotations()) { |
1189 // Style the text. | |
1190 if (textStyle != null) { | |
1191 textStyle.apply(ta); | |
1192 } | |
1193 ta.setY(area.above(0.05d, ta.getY())); | |
1189 plot.getRenderer().addAnnotation(ta, org.jfree.ui.Layer.FOREGROUND); | 1194 plot.getRenderer().addAnnotation(ta, org.jfree.ui.Layer.FOREGROUND); |
1190 } | 1195 } |
1191 | 1196 |
1192 // Hyks. | 1197 // Hyks. |
1193 for (HYKFactory.Zone zone: fa.getBoxes()) { | 1198 for (HYKFactory.Zone zone: fa.getBoxes()) { |
1672 } | 1677 } |
1673 | 1678 |
1674 public double atLeft() { | 1679 public double atLeft() { |
1675 return xRange.getLowerBound(); | 1680 return xRange.getLowerBound(); |
1676 } | 1681 } |
1682 | |
1683 public double above(double percent, double base) { | |
1684 return base + yRange.getLength() * percent; | |
1685 } | |
1677 } | 1686 } |
1678 } | 1687 } |
1679 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 1688 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |