Mercurial > dive4elements > river
changeset 1968:18928f0f339b
Add helper function.
flys-artifacts/trunk@3379 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 09 Dec 2011 15:59:30 +0000 |
parents | 27bb2e24f7f8 |
children | baefcfba97aa |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticState.java |
diffstat | 2 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri Dec 09 15:57:32 2011 +0000 +++ b/flys-artifacts/ChangeLog Fri Dec 09 15:59:30 2011 +0000 @@ -1,3 +1,20 @@ +2011-12-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/states/StaticState.java: + (addDefaultChartOutput): Convenienve function to add a chart-output. + +2011-12-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/model/CrossSectionFacet.java: + Play nice with CrossSectionArtifact. Employ blackboard. + + * src/main/java/de/intevation/flys/artifacts/CrossSectionArtifact.java: + Spawn a CrossSectionFacet, handle various data. + + * src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java: + Do not produce CrossSectionFacets anymore, these now "belong" to + CrossSectionArtifacts. + 2011-12-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> * doc/conf/cache.xml: Added cross_sections cache.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticState.java Fri Dec 09 15:57:32 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticState.java Fri Dec 09 15:59:30 2011 +0000 @@ -1,9 +1,14 @@ package de.intevation.flys.artifacts.states; +import java.util.List; + import org.apache.log4j.Logger; import de.intevation.flys.artifacts.model.FacetTypes; +import de.intevation.artifactdatabase.state.Facet; +import de.intevation.artifactdatabase.state.DefaultOutput; + /** * Yet, a non-abstract DefaultState. */ @@ -29,4 +34,11 @@ setID(id); setDescription(description); } + + public void addDefaultChartOutput(String nameDesc, List<Facet> facets) { + DefaultOutput output = new DefaultOutput(nameDesc, + nameDesc, "image/png", facets, "chart"); + getOutputs().add(output); + } } +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :