diff flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java @ 1679:69929c471646

Improved the creation/rendering of annotations (km favorites, mainvalues). flys-artifacts/trunk@2896 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 05 Oct 2011 14:23:53 +0000
parents dd9dfe1e48fa
children 7e19449d7826
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java	Wed Oct 05 13:16:44 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java	Wed Oct 05 14:23:53 2011 +0000
@@ -2,17 +2,21 @@
 
 import java.util.List;
 
-import de.intevation.flys.model.Annotation;
+import org.w3c.dom.Document;
+
+import org.jfree.chart.annotations.XYTextAnnotation;
 
 
 public class FLYSAnnotation {
 
-    protected List<Annotation> annotations;
+    protected List<XYTextAnnotation> annotations;
+
+    protected Document theme;
 
     protected String label;
 
 
-    public FLYSAnnotation(String label, List<Annotation> annotations) {
+    public FLYSAnnotation(String label, List<XYTextAnnotation> annotations) {
         this.label       = label;
         this.annotations = annotations;
     }
@@ -21,8 +25,16 @@
         return label;
     }
 
-    public List<Annotation> getAnnotations() {
+    public List<XYTextAnnotation> getAnnotations() {
         return annotations;
     }
+
+    public void setTheme(Document theme) {
+        this.theme = theme;
+    }
+
+    public Document getTheme() {
+        return theme;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org