Mercurial > dive4elements > river
changeset 4021:7cc05da7e35c
Add message for 'state.chart.km'
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 04 Oct 2012 10:57:24 +0200 |
parents | cc9b6f23eaf8 |
children | e064e781d255 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/LegendProcessor.java flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java flys-artifacts/src/main/resources/messages.properties flys-artifacts/src/main/resources/messages_de.properties flys-artifacts/src/main/resources/messages_de_DE.properties flys-artifacts/src/main/resources/messages_en.properties |
diffstat | 7 files changed, 23 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Thu Oct 04 09:58:36 2012 +0200 +++ b/flys-artifacts/ChangeLog Thu Oct 04 10:57:24 2012 +0200 @@ -1,3 +1,15 @@ +2012-10-04 Christian Lins <christian.lins@intevation.de> + + * flys-artifacts/src/main/java/de/intevation/flys/exports/LegendProcessor.java, + flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java: + Cosmetics, comments. + + * flys-artifacts/src/main/resources/messages.properties, + flys-artifacts/src/main/resources/messages_de.properties, + flys-artifacts/src/main/resources/messages_de_DE.properties, + flys-artifacts/src/main/resources/messages_en.properties: + Add message for 'state.chart.km' (#899). + 2012-10-02 Felix Wolfsteller <felix.wolfsteller@intevation.de> * flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/AnnotationRiverState.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/LegendProcessor.java Thu Oct 04 09:58:36 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/LegendProcessor.java Thu Oct 04 10:57:24 2012 +0200 @@ -1,15 +1,13 @@ package de.intevation.flys.exports; import java.awt.geom.Line2D; - import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.util.LinkedHashMap; import java.util.Map; -import org.jfree.chart.JFreeChart; import org.jfree.chart.LegendItem; import org.jfree.chart.LegendItemCollection; import org.jfree.chart.plot.XYPlot; @@ -68,7 +66,7 @@ * Create new legend entries, dependent on settings. * @param plot The plot for which to modify the legend. * @param threshold How many items are needed for aggregation to - * be triggered? + * be triggered? */ public static void aggregateLegendEntries(XYPlot plot, int threshold) { LegendItemCollection old = plot.getLegendItems(); @@ -82,8 +80,8 @@ } HashMap<String, List<LegendItem>> entries = new LinkedHashMap<String, List<LegendItem>>(); - for (Iterator i = old.iterator(); i.hasNext();) { - LegendItem item = (LegendItem) i.next(); + for (Iterator<LegendItem> i = old.iterator(); i.hasNext();) { + LegendItem item = i.next(); String hash = legendItemHash(item); List<LegendItem> itemList = entries.get(hash); if (itemList == null) { @@ -110,7 +108,7 @@ List<LegendItem> itemList = cursor.getValue(); if (itemList.size() >= AGGR_THRESHOLD) { // Now do merging. - LegendItem item = (LegendItem) itemList.get(0); + LegendItem item = itemList.get(0); // Unfortunately we cannot clone and just setDescription, as this // method was added in JFreeChart 1.0.14 (we are at .13).
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java Thu Oct 04 09:58:36 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java Thu Oct 04 10:57:24 2012 +0200 @@ -228,6 +228,7 @@ adaptZoom(plot); applySeriesAttributes(plot); + addAnnotationsToRenderer(plot); addLogo(plot); aggregateLegendEntries(plot); @@ -770,6 +771,7 @@ (StyledTimeSeries)getSeriesOf(data, j); String key = series.getKey().toString(); if (attributes.containsKey(key)) { + // Interpolated points are drawn unfilled if (attributes.get(key).equals("interpolate")) { XYLineAndShapeRenderer renderer = series.getStyle().getRenderer();
--- a/flys-artifacts/src/main/resources/messages.properties Thu Oct 04 09:58:36 2012 +0200 +++ b/flys-artifacts/src/main/resources/messages.properties Thu Oct 04 10:57:24 2012 +0200 @@ -97,6 +97,7 @@ state.chart.river = River state.chart.type = Charttype +state.chart.km = Kilometer chart.new.durationcurve = Duration Curve chart.new.computeddischargecurve = Discharge Curve
--- a/flys-artifacts/src/main/resources/messages_de.properties Thu Oct 04 09:58:36 2012 +0200 +++ b/flys-artifacts/src/main/resources/messages_de.properties Thu Oct 04 10:57:24 2012 +0200 @@ -97,6 +97,7 @@ state.chart.river = Gew\u00e4sser state.chart.type = Diagrammtyp +state.chart.km = Kilometer chart.new.durationcurve = Dauerlinie chart.new.computeddischargecurve = Abflusskurve
--- a/flys-artifacts/src/main/resources/messages_de_DE.properties Thu Oct 04 09:58:36 2012 +0200 +++ b/flys-artifacts/src/main/resources/messages_de_DE.properties Thu Oct 04 10:57:24 2012 +0200 @@ -97,6 +97,7 @@ state.chart.river = Gew\u00e4sser state.chart.type = Diagrammtyp +state.chart.km = Kilometer chart.new.durationcurve = Dauerlinie chart.new.computeddischargecurve = Abflusskurve
--- a/flys-artifacts/src/main/resources/messages_en.properties Thu Oct 04 09:58:36 2012 +0200 +++ b/flys-artifacts/src/main/resources/messages_en.properties Thu Oct 04 10:57:24 2012 +0200 @@ -97,6 +97,7 @@ state.chart.river = River state.chart.type = Charttype +state.chart.km = Kilometer chart.new.durationcurve = Duration Curve chart.new.computeddischargecurve = Discharge Curve