Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java @ 4277:18c66e586e44
Doc and whitespace cosmetics.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 26 Oct 2012 16:42:27 +0200 |
parents | 7eebd9e58641 |
children |
comparison
equal
deleted
inserted
replaced
4276:0aa42c9d58e9 | 4277:18c66e586e44 |
---|---|
7 | 7 |
8 import org.jfree.chart.annotations.XYTextAnnotation; | 8 import org.jfree.chart.annotations.XYTextAnnotation; |
9 import org.w3c.dom.Document; | 9 import org.w3c.dom.Document; |
10 | 10 |
11 /** | 11 /** |
12 * List of Text- Annotations with name and theme. | 12 * List of Text- Annotations (Sticky to one axis or in space) |
13 * and 'HYK'-Annotations (rectangles/areas) with name and theme. | |
13 */ | 14 */ |
14 public class FLYSAnnotation { | 15 public class FLYSAnnotation { |
15 | 16 |
16 /** 'Other' Text Annotations. */ | 17 /** 'Other' Text Annotations. */ |
17 protected List<XYTextAnnotation> textAnnotations; | 18 protected List<XYTextAnnotation> textAnnotations; |
44 | 45 |
45 /** Create annotations, parameter might be null. */ | 46 /** Create annotations, parameter might be null. */ |
46 public FLYSAnnotation(String label, List<StickyAxisAnnotation> annotations, | 47 public FLYSAnnotation(String label, List<StickyAxisAnnotation> annotations, |
47 List<HYKFactory.Zone> bAnnotations, Document theme | 48 List<HYKFactory.Zone> bAnnotations, Document theme |
48 ) { | 49 ) { |
49 this.label = label; | 50 this.label = label; |
50 this.axisTextAnnotations = (annotations != null) | 51 this.axisTextAnnotations = (annotations != null) |
51 ? annotations | 52 ? annotations |
52 : Collections.<StickyAxisAnnotation>emptyList(); | 53 : Collections.<StickyAxisAnnotation>emptyList(); |
53 this.boxes = (bAnnotations != null) | 54 this.boxes = (bAnnotations != null) |
54 ? bAnnotations | 55 ? bAnnotations |
55 : Collections.<HYKFactory.Zone>emptyList(); | 56 : Collections.<HYKFactory.Zone>emptyList(); |
56 this.textAnnotations = Collections.<XYTextAnnotation>emptyList(); | 57 this.textAnnotations = Collections.<XYTextAnnotation>emptyList(); |
57 this.setTheme(theme); | 58 this.setTheme(theme); |
58 } | 59 } |
59 | 60 |
60 | 61 |