comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java @ 3155:74c974b10c75

Output code to trackdown the linecolor problem flys-artifacts/trunk@4767 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Christian Lins <christian.lins@intevation.de>
date Sun, 24 Jun 2012 06:51:05 +0000
parents 40147510e2d7
children 8c78c707aa2d
comparison
equal deleted inserted replaced
3154:a08538e21b55 3155:74c974b10c75
1096 * datasets is mapped to a specific axis as well. 1096 * datasets is mapped to a specific axis as well.
1097 * 1097 *
1098 * @param plot plot to add datasets to. 1098 * @param plot plot to add datasets to.
1099 */ 1099 */
1100 protected void addDatasets(XYPlot plot) { 1100 protected void addDatasets(XYPlot plot) {
1101 logger.debug("addDatasets()");
1102
1101 // AxisDatasets are sorted, but some might be empty. 1103 // AxisDatasets are sorted, but some might be empty.
1102 // Thus, generate numbering on the fly. 1104 // Thus, generate numbering on the fly.
1103 int axisIndex = 0; 1105 int axisIndex = 0;
1104 int datasetIndex = 0; 1106 int datasetIndex = 0;
1105 1107
1106 for (Map.Entry<Integer, AxisDataset> entry: datasets.entrySet()) { 1108 for (Map.Entry<Integer, AxisDataset> entry: datasets.entrySet()) {
1107 if (!entry.getValue().isEmpty()) { 1109 if (!entry.getValue().isEmpty()) {
1108 // Add axis and range information. 1110 // Add axis and range information.
1109 AxisDataset axisDataset = entry.getValue(); 1111 AxisDataset axisDataset = entry.getValue();
1110 NumberAxis axis = createYAxis(entry.getKey()); 1112 NumberAxis axis = createYAxis(entry.getKey());
1111 1113
1112 plot.setRangeAxis(axisIndex, axis); 1114 plot.setRangeAxis(axisIndex, axis);
1113 1115
1114 if (axis.getAutoRangeIncludesZero()) { 1116 if (axis.getAutoRangeIncludesZero()) {
1115 axisDataset.setRange( 1117 axisDataset.setRange(

http://dive4elements.wald.intevation.org