Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java @ 1052:b30361464775
The pdf format depends on the chart's aspect ratio (issue290).
gnv-artifacts/trunk@1126 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 26 May 2010 06:45:03 +0000 |
parents | 7f3154331bc1 |
children | 6169ddc827ac |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java Tue May 25 17:46:28 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java Wed May 26 06:45:03 2010 +0000 @@ -85,15 +85,6 @@ Boolean.parseBoolean(System.getProperty("cache.chart", "false")); /** - * A field parsing a system property to adjust the alignment of pdf exports. - * The system property is 'export.pdf.landscape' and should be true or - * false. If this property is true, PDFs will be created in landscape - * format. - */ - protected static final boolean PDF_FORMAT_LANDSCAPE = - Boolean.parseBoolean(System.getProperty("export.pdf.landscape","true")); - - /** * Supported image export formats. */ protected static final String[] IMG_EXPORT_FORMAT = { @@ -389,7 +380,6 @@ chartLables, uuid, "A4", - true, callContext ); } @@ -445,7 +435,7 @@ outputStream, histograms, "A4", - PDF_FORMAT_LANDSCAPE, + true, 50F, 50F, 50F, 50F ); } @@ -848,7 +838,6 @@ ChartLabels chartLables, String uuid, String exportFormat, - boolean landscape, CallContext context ) { Chart chart = getChart( @@ -874,7 +863,6 @@ outputStream, chart.generateChart(), "A4", - PDF_FORMAT_LANDSCAPE, 50F, 50F, 50F, 50F, context );