Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/SQRelationProcessor.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 | 717b58b158c9 |
children | 1cc7653ca84f 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
77 | 77 |
78 SQ[] sqs = (SQ[]) data; | 78 SQ[] sqs = (SQ[]) data; |
79 series = new StyledXYSeries(desc, theme); | 79 series = new StyledXYSeries(desc, theme); |
80 List<XYTextAnnotation> xy = new ArrayList<XYTextAnnotation>(); | 80 List<XYTextAnnotation> xy = new ArrayList<XYTextAnnotation>(); |
81 | 81 |
82 DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, | 82 DateFormat dateFormat = DateFormat.getDateInstance( |
83 DateFormat.SHORT, | |
83 Resources.getLocale(context.getMeta())); | 84 Resources.getLocale(context.getMeta())); |
84 | 85 |
85 for (SQ sq: sqs) { | 86 for (SQ sq: sqs) { |
86 double q = sq.getQ(); | 87 double q = sq.getQ(); |
87 double s = sq.getS(); | 88 double s = sq.getS(); |
88 if (s > 0d && q > 0d) { | 89 if (s > 0d && q > 0d) { |
89 series.add(q, s, false); | 90 series.add(q, s, false); |
90 // Annotate with measurement date | 91 // Annotate with measurement date |
91 if (sq.getDate() != null) { | 92 if (sq.getDate() != null) { |
92 xy.add(new CollisionFreeXYTextAnnotation(dateFormat.format(sq.getDate()), q, s)); | 93 xy.add(new CollisionFreeXYTextAnnotation( |
94 dateFormat.format(sq.getDate()), q, s)); | |
93 } | 95 } |
94 } | 96 } |
95 } | 97 } |
96 | 98 |
97 if (visible && theme.parseShowPointLabel()) { | 99 if (visible && theme.parseShowPointLabel()) { |
98 | 100 |
99 RiverAnnotation annotation = new RiverAnnotation("Messdatum", null, null, theme); | 101 RiverAnnotation annotation = new RiverAnnotation( |
102 "Messdatum", null, null, theme); | |
100 annotation.setTextAnnotations(xy); | 103 annotation.setTextAnnotations(xy); |
101 generator.addAnnotations(annotation); | 104 generator.addAnnotations(annotation); |
102 } | 105 } |
103 } else { | 106 } else { |
104 log.error("Could not handle: " + facetName); | 107 log.error("Could not handle: " + facetName); |