diff artifacts/src/main/java/org/dive4elements/river/jfree/StyledDomainMarker.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 af13ceeba52a
children 819481cc9195
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/jfree/StyledDomainMarker.java	Thu Aug 22 15:38:57 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/jfree/StyledDomainMarker.java	Thu Aug 22 23:31:38 2013 +0200
@@ -11,9 +11,8 @@
 import java.awt.Color;
 
 import org.jfree.chart.plot.IntervalMarker;
-import org.w3c.dom.Document;
 
-import org.dive4elements.river.utils.ThemeUtil;
+import org.dive4elements.river.themes.ThemeDocument;
 
 /**
  * Marker that represents a highlighted interval.
@@ -26,19 +25,19 @@
 
     private final Color backgroundColor, backgroundColor2;
 
-    public StyledDomainMarker(double start, double end, Document theme) {
+    public StyledDomainMarker(double start, double end, ThemeDocument theme) {
         super(start, end);
 
-        backgroundColor = ThemeUtil.parseColor(
-                ThemeUtil.getAreaBackgroundColorString(theme));
+        backgroundColor = ThemeDocument.parseColor(
+                theme.getAreaBackgroundColorString());
         backgroundColor2 = new Color(
             255 - backgroundColor.getRed(),
             255 - backgroundColor.getGreen(),
             255 - backgroundColor.getBlue());
         useSecondColor(false);
 
-        int alpha = 100 - ThemeUtil.parseInteger(
-                ThemeUtil.getAreaTransparencyString(theme), 50);
+        int alpha = 100 - ThemeDocument.parseInteger(
+                theme.getAreaTransparencyString(), 50);
         setAlpha(alpha / 100.0f);
     }
 

http://dive4elements.wald.intevation.org