Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java @ 1053:6169ddc827ac
The format of a histogram pdf depends on the width and height specified by the user - or the default size (issue290).
gnv-artifacts/trunk@1127 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 26 May 2010 07:00:55 +0000 |
parents | b30361464775 |
children | 01e26528bb39 |
comparison
equal
deleted
inserted
replaced
1052:b30361464775 | 1053:6169ddc827ac |
---|---|
429 chartWidth, | 429 chartWidth, |
430 chartHeight | 430 chartHeight |
431 ); | 431 ); |
432 } | 432 } |
433 else if (mode.equalsIgnoreCase("pdf")) { | 433 else if (mode.equalsIgnoreCase("pdf")) { |
434 callContext.putContextValue("chart.width", chartWidth); | |
435 callContext.putContextValue("chart.height", chartHeight); | |
436 | |
434 ChartExportHelper.exportHistogramsAsPDF( | 437 ChartExportHelper.exportHistogramsAsPDF( |
435 outputStream, | 438 outputStream, |
436 histograms, | 439 histograms, |
437 "A4", | 440 "A4", |
438 true, | 441 50F, 50F, 50F, 50F, |
439 50F, 50F, 50F, 50F | 442 callContext |
440 ); | 443 ); |
441 } | 444 } |
442 else if (mode.equalsIgnoreCase("svg")) { | 445 else if (mode.equalsIgnoreCase("svg")) { |
443 ChartExportHelper.exportHistogramsAsSVG( | 446 ChartExportHelper.exportHistogramsAsSVG( |
444 outputStream, | 447 outputStream, |