diff artifacts/src/main/java/org/dive4elements/river/exports/minfo/SedimentLoadLSGenerator.java @ 6905:1b35b2ddfc28

Artifacts: Introduce ThemeDocument & make stuff compileable again. THIS BREAKS THE SYSTEM! TODO: Move ThemeUtils into ThemeDocument.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 22 Aug 2013 23:31:38 +0200
parents 252806ee7dd1
children e0311aa32efb
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/SedimentLoadLSGenerator.java	Thu Aug 22 15:38:57 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/SedimentLoadLSGenerator.java	Thu Aug 22 23:31:38 2013 +0200
@@ -13,7 +13,6 @@
 
 import org.apache.log4j.Logger;
 import org.jfree.data.xy.XYSeries;
-import org.w3c.dom.Document;
 
 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet;
 import org.dive4elements.artifactdatabase.state.Facet;
@@ -33,6 +32,7 @@
 import org.dive4elements.river.jfree.DoubleBounds;
 import org.dive4elements.river.jfree.RiverAnnotation;
 import org.dive4elements.river.jfree.StyledXYSeries;
+import org.dive4elements.river.themes.ThemeDocument;
 import org.dive4elements.river.utils.DataUtil;
 
 
@@ -94,7 +94,7 @@
     }
 
     @Override
-    public void doOut(ArtifactAndFacet bundle, Document attr, boolean visible) {
+    public void doOut(ArtifactAndFacet bundle, ThemeDocument attr, boolean visible) {
         String name = bundle.getFacetName();
 
         logger.debug("doOut: " + name);
@@ -259,7 +259,7 @@
     }
 
     protected void doSedimentLoadOut(double[][] data,
-        ArtifactAndFacet aandf, Document theme, boolean visible) {
+        ArtifactAndFacet aandf, ThemeDocument theme, boolean visible) {
 
         // Allow for gaps (NaNs).
         XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), false, theme);
@@ -269,7 +269,7 @@
     }
 
     protected void doSedimentLoadUnknownOut(SedimentLoad load,
-        ArtifactAndFacet aandf, Document theme, boolean visible) {
+        ArtifactAndFacet aandf, ThemeDocument theme, boolean visible) {
 
         Set<Double> kms = load.getKms();
         double[][] data = new double[2][kms.size()];
@@ -289,7 +289,7 @@
     protected void doFlowVelocityMainOut(
         FlowVelocityData data,
         ArtifactAndFacet aandf,
-        Document         theme,
+        ThemeDocument    theme,
         boolean          visible
     ) {
         XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme);
@@ -301,7 +301,7 @@
     protected void doFlowVelocityTotalOut(
         FlowVelocityData data,
         ArtifactAndFacet aandf,
-        Document         theme,
+        ThemeDocument    theme,
         boolean          visible
     ) {
         if (data == null) {
@@ -318,7 +318,7 @@
     protected void doBedDifferenceYearOut(
         BedDiffYearResult data,
         ArtifactAndFacet aandf,
-        Document theme,
+        ThemeDocument theme,
         boolean visible
     ) {
         XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme);
@@ -330,7 +330,7 @@
     protected void doBedDifferenceEpochOut(
         BedDiffEpochResult data,
         ArtifactAndFacet aandf,
-        Document theme,
+        ThemeDocument theme,
         boolean visible
     ) {
         XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme);
@@ -342,7 +342,7 @@
     protected void doWDifferencesOut(
         WKms       wkms,
         ArtifactAndFacet aandf,
-        Document   theme,
+        ThemeDocument   theme,
         boolean    visible
     ) {
         if (wkms == null) {

http://dive4elements.wald.intevation.org