Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/ChartExportHelper.java @ 3270:4ac581062c40
Fix various documentation issues.
flys-artifacts/trunk@4913 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 10 Jul 2012 12:19:35 +0000 |
parents | 5648b5b34ae2 |
children | d9af29a4bb85 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartExportHelper.java Tue Jul 10 11:10:38 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartExportHelper.java Tue Jul 10 12:19:35 2012 +0000 @@ -90,8 +90,7 @@ * @param out OutputStream * @param chart JFreeChart object to be exported. * @param format Format (e.g. png, gif, jpg) - * @param width Width, the image used to be - * @param height Height, the image used to be + * @param cc context, in which e.g. size is stored. * * @throws IOException if writing image to OutputStream failed. */ @@ -168,14 +167,6 @@ * * @param out OutputStream * @param chart JFreeChart - * @param pageFormat String to specify a page format, {@link - * #DEFAULT_PAGE_SIZE} is used if no pageFormat is given - * @param landscape If this is true, the pdf is delivered in landscape - * format - * @param marginLeft Space to left border - * @param marginRight Space to right border - * @param marginTop Space to upper border - * @param marginBottom Space to lower border */ public static void exportPDF( OutputStream out, @@ -189,12 +180,12 @@ if (pageFormat == null) pageFormat = DEFAULT_PAGE_SIZE; - // max size of the chart + // Max size of the chart. Rectangle page = PageSize.getRectangle(pageFormat); float pageWidth = page.getWidth(); float pageHeight = page.getHeight(); - // the chart width + // The chart width. int[] size = getSize(cc); boolean landscape = size[0] > size[1];