Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1678:03fbf1b30e72 | 1679:69929c471646 |
---|---|
1 package de.intevation.flys.jfree; | 1 package de.intevation.flys.jfree; |
2 | 2 |
3 import java.util.List; | 3 import java.util.List; |
4 | 4 |
5 import de.intevation.flys.model.Annotation; | 5 import org.w3c.dom.Document; |
6 | |
7 import org.jfree.chart.annotations.XYTextAnnotation; | |
6 | 8 |
7 | 9 |
8 public class FLYSAnnotation { | 10 public class FLYSAnnotation { |
9 | 11 |
10 protected List<Annotation> annotations; | 12 protected List<XYTextAnnotation> annotations; |
13 | |
14 protected Document theme; | |
11 | 15 |
12 protected String label; | 16 protected String label; |
13 | 17 |
14 | 18 |
15 public FLYSAnnotation(String label, List<Annotation> annotations) { | 19 public FLYSAnnotation(String label, List<XYTextAnnotation> annotations) { |
16 this.label = label; | 20 this.label = label; |
17 this.annotations = annotations; | 21 this.annotations = annotations; |
18 } | 22 } |
19 | 23 |
20 public String getLabel() { | 24 public String getLabel() { |
21 return label; | 25 return label; |
22 } | 26 } |
23 | 27 |
24 public List<Annotation> getAnnotations() { | 28 public List<XYTextAnnotation> getAnnotations() { |
25 return annotations; | 29 return annotations; |
30 } | |
31 | |
32 public void setTheme(Document theme) { | |
33 this.theme = theme; | |
34 } | |
35 | |
36 public Document getTheme() { | |
37 return theme; | |
26 } | 38 } |
27 } | 39 } |
28 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |