Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java @ 452:4cd03910f97e
Enable PDF export of vertical cross section charts.
gnv-artifacts/trunk@500 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 04 Jan 2010 13:14:27 +0000 |
parents | f5a041000357 |
children | 04cfb4e3da4f |
comparison
equal
deleted
inserted
replaced
451:bc5901bb4525 | 452:4cd03910f97e |
---|---|
351 callContext | 351 callContext |
352 ); | 352 ); |
353 } | 353 } |
354 else if (outputMode.equalsIgnoreCase("csv")) { | 354 else if (outputMode.equalsIgnoreCase("csv")) { |
355 log.debug("CSV-File will be generated."); | 355 log.debug("CSV-File will be generated."); |
356 Collection<Result> chartResult = | 356 Object result = getChartResult(uuid, callContext); |
357 (Collection<Result>) getChartResult(uuid, callContext); | 357 if (result instanceof Collection) { |
358 this.createCSV(outputStream, chartResult); | 358 this.createCSV( |
359 outputStream, | |
360 (Collection<Result>)result); | |
361 } | |
359 } else if (outputMode.equalsIgnoreCase("statistics")) { | 362 } else if (outputMode.equalsIgnoreCase("statistics")) { |
360 log.debug("Statistics will be generated."); | 363 log.debug("Statistics will be generated."); |
361 | 364 |
362 Statistics s = getStatisticsGenerator(); | 365 Statistics s = getStatisticsGenerator(); |
363 | 366 |
643 chartLables, | 646 chartLables, |
644 createStyle(context), | 647 createStyle(context), |
645 parameters, | 648 parameters, |
646 measurements, | 649 measurements, |
647 dates, | 650 dates, |
648 (Collection) getChartResult(uuid, context), | 651 getChartResult(uuid, context), |
649 locale, | 652 locale, |
650 uuid, | 653 uuid, |
651 linesVisible, | 654 linesVisible, |
652 shapesVisible, | 655 shapesVisible, |
653 context | 656 context |