Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java @ 3184:12440c6b8b66
Refactored legend item aggregation again.
flys-artifacts/trunk@4799 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 26 Jun 2012 13:04:51 +0000 |
parents | b6da650b0718 |
children | abc2db630815 |
comparison
equal
deleted
inserted
replaced
3183:05c84d65988a | 3184:12440c6b8b66 |
---|---|
1384 ); | 1384 ); |
1385 } | 1385 } |
1386 | 1386 |
1387 | 1387 |
1388 /** | 1388 /** |
1389 * Create new legend entries, dependent on settings. | |
1390 * @param plot The plot for which to modify the legend. | |
1391 */ | |
1392 public void aggregateLegendEntries(XYPlot plot) { | |
1393 int AGGR_THRESHOLD = 0; | |
1394 | |
1395 Integer threshold = getChartSettings().getLegendSection() | |
1396 .getAggregationThreshold(); | |
1397 | |
1398 AGGR_THRESHOLD = (threshold != null) ? threshold.intValue() : 0; | |
1399 | |
1400 LegendProcessor.aggregateLegendEntries(plot, AGGR_THRESHOLD); | |
1401 } | |
1402 | |
1403 | |
1404 /** | |
1389 * Returns a transparently textured paint. | 1405 * Returns a transparently textured paint. |
1390 * | 1406 * |
1391 * @return a transparently textured paint. | 1407 * @return a transparently textured paint. |
1392 */ | 1408 */ |
1393 protected static Paint createTransparentPaint() { | 1409 protected static Paint createTransparentPaint() { |