comparison artifacts/src/main/java/org/dive4elements/river/jfree/RiverAnnotation.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 1b35b2ddfc28
children
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
36 36
37 /** Chart-legend information. */ 37 /** Chart-legend information. */
38 protected String label; 38 protected String label;
39 39
40 40
41 public RiverAnnotation(String label, List<StickyAxisAnnotation> annotations) { 41 public RiverAnnotation(
42 String label,
43 List<StickyAxisAnnotation> annotations
44 ) {
42 this(label, annotations, null, null); 45 this(label, annotations, null, null);
43 } 46 }
44 47
45 48
46 /** Create annotations, parameter might be null. */ 49 /** Create annotations, parameter might be null. */
47 public RiverAnnotation(String label, List<StickyAxisAnnotation> annotations, 50 public RiverAnnotation(
51 String label,
52 List<StickyAxisAnnotation> annotations,
48 List<HYKFactory.Zone> bAnnotations 53 List<HYKFactory.Zone> bAnnotations
49 ) { 54 ) {
50 this(label, annotations, bAnnotations, null); 55 this(label, annotations, bAnnotations, null);
51 } 56 }
52 57
53 58
54 /** Create annotations, parameter might be null. */ 59 /** Create annotations, parameter might be null. */
55 public RiverAnnotation(String label, List<StickyAxisAnnotation> annotations, 60 public RiverAnnotation(
56 List<HYKFactory.Zone> bAnnotations, ThemeDocument theme 61 String label,
62 List<StickyAxisAnnotation> annotations,
63 List<HYKFactory.Zone> bAnnotations,
64 ThemeDocument theme
57 ) { 65 ) {
58 this.label = label; 66 this.label = label;
59 this.axisTextAnnotations = (annotations != null) 67 this.axisTextAnnotations = (annotations != null)
60 ? annotations 68 ? annotations
61 : Collections.<StickyAxisAnnotation>emptyList(); 69 : Collections.<StickyAxisAnnotation>emptyList();
62 this.boxes = (bAnnotations != null) 70 this.boxes = (bAnnotations != null)
63 ? bAnnotations 71 ? bAnnotations
64 : Collections.<HYKFactory.Zone>emptyList(); 72 : Collections.<HYKFactory.Zone>emptyList();
65 this.textAnnotations = Collections.<XYTextAnnotation>emptyList(); 73 this.textAnnotations = Collections.<XYTextAnnotation>emptyList();
66 this.setTheme(theme); 74 this.setTheme(theme);
67 } 75 }
68 76
69 77

http://dive4elements.wald.intevation.org