Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 1849:5d5dd44d613e
Refactored, move doMainValueAnnotations to XYChartGenerator.
flys-artifacts/trunk@3193 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 09 Nov 2011 13:06:08 +0000 |
parents | 41ba2276d785 |
children | 11c4b1429117 |
comparison
equal
deleted
inserted
replaced
1848:3918bd7eb4e1 | 1849:5d5dd44d613e |
---|---|
32 import org.jfree.data.xy.XYSeries; | 32 import org.jfree.data.xy.XYSeries; |
33 import org.jfree.data.xy.XYSeriesCollection; | 33 import org.jfree.data.xy.XYSeriesCollection; |
34 | 34 |
35 import org.jfree.ui.RectangleInsets; | 35 import org.jfree.ui.RectangleInsets; |
36 | 36 |
37 import de.intevation.artifactdatabase.state.Facet; | |
38 | |
37 import de.intevation.flys.exports.ChartExportHelper; | 39 import de.intevation.flys.exports.ChartExportHelper; |
38 import de.intevation.flys.jfree.FLYSAnnotation; | 40 import de.intevation.flys.jfree.FLYSAnnotation; |
39 import de.intevation.flys.jfree.StickyAxisAnnotation; | 41 import de.intevation.flys.jfree.StickyAxisAnnotation; |
40 | 42 |
41 import de.intevation.flys.utils.ThemeAccess; | 43 import de.intevation.flys.utils.ThemeAccess; |
640 | 642 |
641 logger.warn("No applicalable renderer found!"); | 643 logger.warn("No applicalable renderer found!"); |
642 | 644 |
643 return new XYLineAndShapeRenderer(); | 645 return new XYLineAndShapeRenderer(); |
644 } | 646 } |
647 | |
648 | |
649 /** | |
650 * Store themed annotations like MainValues for later plotting. | |
651 */ | |
652 protected void doAnnotations( | |
653 FLYSAnnotation annotations, | |
654 Facet facet, | |
655 Document theme, | |
656 boolean visible | |
657 ){ | |
658 logger.debug("doAnnotations"); | |
659 | |
660 annotations.setTheme(theme); | |
661 annotations.setLabel(facet.getDescription()); | |
662 addAnnotations(annotations, visible); | |
663 } | |
645 } | 664 } |
646 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 665 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |