Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 1685:022f62c75878
Cosmetics.
flys-artifacts/trunk@2903 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 07 Oct 2011 13:14:37 +0000 |
parents | bdb05dc9b763 |
children | e8d1e531687a |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Fri Oct 07 10:51:09 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Fri Oct 07 13:14:37 2011 +0000 @@ -59,13 +59,12 @@ /** List of annotations to insert in plot. */ protected List<FLYSAnnotation> annotations; - /** The max X range that includes all X values of all series for each axis.*/ + /** The max X range to include all X values of all series for each axis. */ protected Map<Integer, Range> xRanges; - /** The max Y range that includes all Y values of all series for each axis.*/ + /** The max Y range to include all Y values of all series for each axis. */ protected Map<Integer, Range> yRanges; - public static final Color DEFAULT_GRID_COLOR = Color.GRAY; public static final float DEFAULT_GRID_LINE_WIDTH = 0.3f; @@ -144,6 +143,10 @@ } + /** + * Add first and second dataset to plot. + * @param plot plot to add datasets to. + */ protected void addDatasets(XYPlot plot) { if (first != null) { logger.debug("Set the first axis dataset."); @@ -281,7 +284,6 @@ xRanges.get(0), yRanges.get(new Integer(i)) }; - if (i == 0) { ValueAxis xaxis = plot.getDomainAxis(); zoomX(plot, xaxis, ranges[0], xrange);