Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/DurationCurveGenerator.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 | 27d42c9ee367 |
children | 1cc7653ca84f 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
132 return label; | 132 return label; |
133 } | 133 } |
134 | 134 |
135 | 135 |
136 @Override | 136 @Override |
137 protected boolean zoomX(XYPlot plot, ValueAxis axis, Bounds bounds, Range x) { | 137 protected boolean zoomX( |
138 XYPlot plot, | |
139 ValueAxis axis, | |
140 Bounds bounds, | |
141 Range x | |
142 ) { | |
138 boolean zoomin = super.zoom(plot, axis, bounds, x); | 143 boolean zoomin = super.zoom(plot, axis, bounds, x); |
139 | 144 |
140 if (!zoomin) { | 145 if (!zoomin) { |
141 axis.setLowerBound(0d); | 146 axis.setLowerBound(0d); |
142 } | 147 } |
151 * This method overrides the method in the parent class to set the lower | 156 * This method overrides the method in the parent class to set the lower |
152 * bounds of the Q axis to 0. This axis should never display negative | 157 * bounds of the Q axis to 0. This axis should never display negative |
153 * values on its own. | 158 * values on its own. |
154 */ | 159 */ |
155 @Override | 160 @Override |
156 protected boolean zoomY(XYPlot plot, ValueAxis axis, Bounds bounds, Range x) { | 161 protected boolean zoomY( |
162 XYPlot plot, | |
163 ValueAxis axis, | |
164 Bounds bounds, | |
165 Range x | |
166 ) { | |
157 boolean zoomin = super.zoom(plot, axis, bounds, x); | 167 boolean zoomin = super.zoom(plot, axis, bounds, x); |
158 | 168 |
159 if (!zoomin && axis instanceof IdentifiableNumberAxis) { | 169 if (!zoomin && axis instanceof IdentifiableNumberAxis) { |
160 String id = ((IdentifiableNumberAxis) axis).getId(); | 170 String id = ((IdentifiableNumberAxis) axis).getId(); |
161 | 171 |
256 ThemeDocument theme, | 266 ThemeDocument theme, |
257 boolean visible | 267 boolean visible |
258 ){ | 268 ){ |
259 log.debug("DurationCurveGenerator.doPointOut"); | 269 log.debug("DurationCurveGenerator.doPointOut"); |
260 | 270 |
261 XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme); | 271 XYSeries series = |
272 new StyledXYSeries(aandf.getFacetDescription(), theme); | |
262 | 273 |
263 series.add(point.getX(), point.getY()); | 274 series.add(point.getX(), point.getY()); |
264 | 275 |
265 addAxisSeries(series, YAXIS.W.idx, visible); | 276 addAxisSeries(series, YAXIS.W.idx, visible); |
266 } | 277 } |
308 return yaxes[idx].toString(); | 319 return yaxes[idx].toString(); |
309 } | 320 } |
310 }; | 321 }; |
311 } | 322 } |
312 | 323 |
313 // MainValue-Annotations should be visualized by a line that goes to the curve itself. | 324 // MainValue-Annotations should be visualized by |
325 // a line that goes to the curve itself. | |
314 } | 326 } |
315 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 327 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |