Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/jfree/AnnotationHelper.java @ 8316:c086b06b81e5
Make ChartArea and thus annotations sensible for logarithmic axes (plus some minor cleanup).
author | "Tom Gottfried <tom@intevation.de>" |
---|---|
date | Wed, 24 Sep 2014 13:29:34 +0200 |
parents | e4606eae8ea5 |
children | 130160b8d245 |
comparison
equal
deleted
inserted
replaced
8315:d4c501d2c098 | 8316:c086b06b81e5 |
---|---|
56 return; | 56 return; |
57 } | 57 } |
58 | 58 |
59 // OPTMIMIZE: Pre-calculate positions | 59 // OPTMIMIZE: Pre-calculate positions |
60 ChartArea area = new ChartArea( | 60 ChartArea area = new ChartArea( |
61 plot.getDomainAxis(0).getRange(), | 61 plot.getDomainAxis(0), |
62 plot.getRangeAxis().getRange()); | 62 plot.getRangeAxis()); |
63 | 63 |
64 // Walk over all Annotation sets. | 64 // Walk over all Annotation sets. |
65 for (RiverAnnotation fa: annotations) { | 65 for (RiverAnnotation fa: annotations) { |
66 | 66 |
67 // Access text styling, if any. | 67 // Access text styling, if any. |