Mercurial > dive4elements > river
changeset 3168:e10323bf3cbc
Look for the attribut "outline" in TimeseriesChartGenerator to render shape
outlines in charts.
flys-artifacts/trunk@4781 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 25 Jun 2012 15:38:38 +0000 |
parents | 6f1a102ec14a |
children | b6da650b0718 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java |
diffstat | 3 files changed, 20 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon Jun 25 15:35:00 2012 +0000 +++ b/flys-artifacts/ChangeLog Mon Jun 25 15:38:38 2012 +0000 @@ -1,3 +1,11 @@ +2012-06-25 Raimund Renkert <raimund.renkert@intevation.de> + + * src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java: + Look for the attribut "outline" to render shape outlines in charts. + + * src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java: + Add the "outline" attribute. + 2012-06-25 Raimund Renkert <raimund.renkert@intevation.de> * src/main/java/de/intevation/flys/exports/ChartGenerator.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java Mon Jun 25 15:35:00 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java Mon Jun 25 15:38:38 2012 +0000 @@ -714,9 +714,16 @@ j, renderer.getSeriesFillPaint(j)); renderer.setSeriesShapesFilled(j, false); + } + } + if (attributes.containsKey(key)) { + if(attributes.get(key).equals("outline")) { + XYLineAndShapeRenderer renderer = + series.getStyle().getRenderer(); + renderer.setSeriesPaint( + j, + renderer.getSeriesFillPaint(j)); renderer.setDrawOutlines(true); - renderer.setSeriesVisibleInLegend(j, Boolean.FALSE, false); - logger.debug("legend: " + renderer.getSeriesVisibleInLegend(j)); } } }
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java Mon Jun 25 15:35:00 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java Mon Jun 25 15:38:38 2012 +0000 @@ -226,6 +226,7 @@ tsc.addSeries(series); addAxisDataset(tsc, 0, visible); + addAttribute(desc, "outline"); } @@ -265,7 +266,7 @@ tsc.addSeries(interpol); addAxisDataset(tsc, 0, visible); addAttribute(desc + "interpol", "interpolate"); - + addAttribute(desc, "outline"); } @@ -306,6 +307,7 @@ addAxisDataset(tsc, 0, visible); addAttribute(desc + "interpol", "interpolate"); + addAttribute(desc, "outline"); }