Mercurial > dive4elements > river
changeset 2160:8428de5846e8
Employ ChartRenderingInfo when creating svg/pdf exports.
flys-artifacts/trunk@3746 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 23 Jan 2012 07:55:17 +0000 (2012-01-23) |
parents | ebfca80dae09 |
children | c68f4f227c09 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/ChartExportHelper.java |
diffstat | 2 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri Jan 20 16:24:39 2012 +0000 +++ b/flys-artifacts/ChangeLog Mon Jan 23 07:55:17 2012 +0000 @@ -1,3 +1,12 @@ +2012-01-23 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + Fix flys/issue395 (SVG/PDF-Export: L�ngsschitt enth�lt keine + Streckenfavoriten.) + + * src/main/java/de/intevation/flys/exports/ChartExportHelper.java: + Fix pdf/svg rendering of annotatios, by adding a + ChartRenderingInfo-object to the chart.draw call. + 2012-01-20 Raimund Renkert <raimund.renkert@intevation.de> * src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartExportHelper.java Fri Jan 20 16:24:39 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartExportHelper.java Mon Jan 23 07:55:17 2012 +0000 @@ -137,7 +137,9 @@ int[] size = getSize(context); - chart.draw(graphics, new Rectangle2D.Double(0.0D, 0.0D,size[0],size[1])); + ChartRenderingInfo info = new ChartRenderingInfo(); + + chart.draw(graphics, new Rectangle2D.Double(0.0D, 0.0D,size[0],size[1]), info); try { graphics.stream(new OutputStreamWriter(out, encoding)); @@ -257,7 +259,9 @@ Rectangle2D area = new Rectangle2D.Double( origin[0], origin[1], size[0], size[1]); - chart.draw(graphics, area); + ChartRenderingInfo info = new ChartRenderingInfo(); + + chart.draw(graphics, area, info); graphics.dispose(); content.addTemplate(template, 0f, 0f); }