Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java @ 788:e8a9e84a0328
Corrected JavaDoc errors in Chart Package.
gnv-artifacts/trunk@870 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 31 Mar 2010 08:01:56 +0000 |
parents | 3509735619e7 |
children | 22c18083225e |
comparison
equal
deleted
inserted
replaced
787:6cd8492019d8 | 788:e8a9e84a0328 |
---|---|
125 /** | 125 /** |
126 * Abstract method which is called by <code>Chart</code> interface after | 126 * Abstract method which is called by <code>Chart</code> interface after |
127 * chart creation. It turns an axis' label into a locale specific format. | 127 * chart creation. It turns an axis' label into a locale specific format. |
128 * | 128 * |
129 * @param axis Axis to adjust. | 129 * @param axis Axis to adjust. |
130 * @param local java.util.Locale object used specify the format. | 130 * @param locale java.util.Locale object used specify the format. |
131 */ | 131 */ |
132 protected abstract void localizeDomainAxis(Axis axis, Locale locale); | 132 protected abstract void localizeDomainAxis(Axis axis, Locale locale); |
133 | 133 |
134 /** | 134 /** |
135 * Abstract method to create a label for a series of parameters. | 135 * Abstract method to create a label for a series of parameters. |
276 renderer.setSeriesLinesVisible(i, renderLines); | 276 renderer.setSeriesLinesVisible(i, renderLines); |
277 } | 277 } |
278 plot.setRenderer(idx, renderer); | 278 plot.setRenderer(idx, renderer); |
279 } | 279 } |
280 | 280 |
281 | |
282 /** | |
283 * @return Index of the next color | |
284 */ | |
281 protected static synchronized int nextColor() { | 285 protected static synchronized int nextColor() { |
282 return nextColor++; | 286 return nextColor++; |
283 } | 287 } |
284 | 288 |
285 | 289 |
300 /** | 304 /** |
301 * Abstract method which is called after chart creation. It turns an | 305 * Abstract method which is called after chart creation. It turns an |
302 * axis' label into a locale specific format. | 306 * axis' label into a locale specific format. |
303 * | 307 * |
304 * @param axis Axis to adjust. | 308 * @param axis Axis to adjust. |
305 * @param local java.util.Locale object used specify the format. | 309 * @param locale java.util.Locale object used specify the format. |
306 * | 310 * |
307 * @param axis | |
308 */ | 311 */ |
309 protected void localizeRangeAxis(Axis axis, Locale locale) { | 312 protected void localizeRangeAxis(Axis axis, Locale locale) { |
310 if (locale == null) | 313 if (locale == null) |
311 return; | 314 return; |
312 | 315 |
353 /** | 356 /** |
354 * Return the maximum y-range of <code>dataset</code> with a margin of | 357 * Return the maximum y-range of <code>dataset</code> with a margin of |
355 * <code>percent</code> percent. | 358 * <code>percent</code> percent. |
356 * | 359 * |
357 * @param dataset Dataset to be scaned. | 360 * @param dataset Dataset to be scaned. |
358 * | 361 * @param percent Percent used to expand the range. |
359 * @return JFreeChart Range object containing min and max y-value with a | 362 * @return JFreeChart Range object containing min and max y-value with a |
360 * margin. | 363 * margin. |
361 */ | 364 */ |
362 public Range getMaxRangeOfDatasetWithMargin( | 365 public Range getMaxRangeOfDatasetWithMargin( |
363 XYDataset dataset, | 366 XYDataset dataset, |