diff flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java @ 2666:6da7e064ae90

Allow basic and styled area labels, yet on static position within plot. flys-artifacts/trunk@4344 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 03 May 2012 20:27:01 +0000
parents 5144369d5961
children b75681c09ef8
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java	Thu May 03 20:23:02 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java	Thu May 03 20:27:01 2012 +0000
@@ -5,6 +5,8 @@
 
 import org.w3c.dom.Document;
 
+import de.intevation.flys.jfree.StableXYDifferenceRenderer;
+
 import org.jfree.chart.annotations.XYTextAnnotation;
 
 
@@ -161,6 +163,11 @@
                 ta.setRotationAngle(0f*Math.PI/180f);
             }
         }
+
+        public void apply(StableXYDifferenceRenderer renderer) {
+            renderer.setLabelColor(textColor);
+            renderer.setLabelFont(font);
+        }
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org