comparison 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
comparison
equal deleted inserted replaced
2151:eb1a676c0d6e 2152:2336927cb096
22 protected Document theme; 22 protected Document theme;
23 23
24 protected String label; 24 protected String label;
25 25
26 26
27 public FLYSAnnotation(String label, List<XYTextAnnotation> annotations) {
28 this(label, annotations, null, null);
29 }
30
31
27 /** Create annotations, parameter might be null. */ 32 /** Create annotations, parameter might be null. */
28 public FLYSAnnotation(String label, List<XYTextAnnotation> annotations, 33 public FLYSAnnotation(String label, List<XYTextAnnotation> annotations,
29 List<HYKFactory.Zone> bAnnotations 34 List<HYKFactory.Zone> bAnnotations
35 ) {
36 this(label, annotations, bAnnotations, null);
37 }
38
39
40 /** Create annotations, parameter might be null. */
41 public FLYSAnnotation(String label, List<XYTextAnnotation> annotations,
42 List<HYKFactory.Zone> bAnnotations, Document theme
30 ) { 43 ) {
31 this.label = label; 44 this.label = label;
32 this.textAnnotations = (annotations != null) 45 this.textAnnotations = (annotations != null)
33 ? annotations 46 ? annotations
34 : Collections.<XYTextAnnotation>emptyList(); 47 : Collections.<XYTextAnnotation>emptyList();
35 this.boxes = (bAnnotations != null) 48 this.boxes = (bAnnotations != null)
36 ? bAnnotations 49 ? bAnnotations
37 : Collections.<HYKFactory.Zone>emptyList(); 50 : Collections.<HYKFactory.Zone>emptyList();
51 this.setTheme(theme);
38 } 52 }
39 53
40 public FLYSAnnotation(String label, List<XYTextAnnotation> annotations) {
41 this.label = label;
42 this.textAnnotations = (annotations != null)
43 ? annotations
44 : Collections.<XYTextAnnotation>emptyList();
45 this.boxes = Collections.<HYKFactory.Zone>emptyList();
46 }
47 54
48 public void setLabel(String label) { 55 public void setLabel(String label) {
49 this.label = label; 56 this.label = label;
50 } 57 }
51 58

http://dive4elements.wald.intevation.org