Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java @ 2152:2336927cb096
Add basic (text) styling for HYKS.
flys-artifacts/trunk@3734 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 20 Jan 2012 08:38:50 +0000 |
parents | 59bb5c895be3 |
children | c68f4f227c09 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java Fri Jan 20 08:35:03 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java Fri Jan 20 08:38:50 2012 +0000 @@ -24,10 +24,23 @@ protected String label; + public FLYSAnnotation(String label, List<XYTextAnnotation> annotations) { + this(label, annotations, null, null); + } + + /** Create annotations, parameter might be null. */ public FLYSAnnotation(String label, List<XYTextAnnotation> annotations, List<HYKFactory.Zone> bAnnotations ) { + this(label, annotations, bAnnotations, null); + } + + + /** Create annotations, parameter might be null. */ + public FLYSAnnotation(String label, List<XYTextAnnotation> annotations, + List<HYKFactory.Zone> bAnnotations, Document theme + ) { this.label = label; this.textAnnotations = (annotations != null) ? annotations @@ -35,15 +48,9 @@ this.boxes = (bAnnotations != null) ? bAnnotations : Collections.<HYKFactory.Zone>emptyList(); + this.setTheme(theme); } - public FLYSAnnotation(String label, List<XYTextAnnotation> annotations) { - this.label = label; - this.textAnnotations = (annotations != null) - ? annotations - : Collections.<XYTextAnnotation>emptyList(); - this.boxes = Collections.<HYKFactory.Zone>emptyList(); - } public void setLabel(String label) { this.label = label;