Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 1986:3632150dbe0b
Implemented a ChartSettings with relevant Sections and Attributes for charts (NOTE: Work still in progress).
flys-artifacts/trunk@3418 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 14 Dec 2011 14:17:31 +0000 |
parents | ddb7b7da6199 |
children | 156304542edf |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Wed Dec 14 12:16:24 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Wed Dec 14 14:17:31 2011 +0000 @@ -38,6 +38,7 @@ import org.jfree.ui.RectangleInsets; import de.intevation.artifactdatabase.state.Facet; +import de.intevation.artifactdatabase.state.Settings; import de.intevation.flys.exports.ChartExportHelper; import de.intevation.flys.jfree.FLYSAnnotation; @@ -821,5 +822,27 @@ annotations.setLabel(facet.getDescription()); addAnnotations(annotations, visible); } + + + /** + * Returns an instance of <i>ChartSettings</i> with a chart specific section + * but with no axes settings. + * + * @return an instance of <i>ChartSettings</i>. + */ + public Settings getSettings() { + ChartSettings settings = new ChartSettings(); + + ChartSection chartSection = new ChartSection(); + // XXX Before we can do this, the FLYSArtifactCollection needs to call + // doOut() for each facet. + //chartSection.setTitle(getChartTitle()); + //chartSection.setSubtitle("TODO SUBTITLE"); + //chartSection.setDisplayGird(true); + + settings.setChartSection(chartSection); + + return settings; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :