Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.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 | 5ffbf97766f7 |
children | 42b258294067 |
comparison
equal
deleted
inserted
replaced
8315:d4c501d2c098 | 8316:c086b06b81e5 |
---|---|
429 return; | 429 return; |
430 } | 430 } |
431 | 431 |
432 // OPTMIMIZE: Pre-calculate positions | 432 // OPTMIMIZE: Pre-calculate positions |
433 ChartArea area = new ChartArea( | 433 ChartArea area = new ChartArea( |
434 plot.getDomainAxis(0).getRange(), | 434 plot.getDomainAxis(0), |
435 plot.getRangeAxis().getRange()); | 435 plot.getRangeAxis()); |
436 | 436 |
437 // Walk over all Annotation sets. | 437 // Walk over all Annotation sets. |
438 for (RiverAnnotation fa: annotations) { | 438 for (RiverAnnotation fa: annotations) { |
439 | 439 |
440 // Access text styling, if any. | 440 // Access text styling, if any. |