comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeCurveGenerator.java @ 375:60f63539d004

Ws and Qs of a longitudinal section chart are mapped to an own range axis now. flys-artifacts/trunk@1785 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 02 May 2011 09:41:22 +0000
parents 2ce7b473620e
children 52b6de9d0ab4
comparison
equal deleted inserted replaced
374:91fbaa2744bf 375:60f63539d004
6 6
7 import org.apache.log4j.Logger; 7 import org.apache.log4j.Logger;
8 8
9 import org.w3c.dom.Document; 9 import org.w3c.dom.Document;
10 10
11 import org.jfree.chart.JFreeChart;
12 import org.jfree.chart.plot.XYPlot;
11 import org.jfree.data.xy.DefaultXYDataset; 13 import org.jfree.data.xy.DefaultXYDataset;
12 import org.jfree.data.xy.XYDataset;
13 14
14 import de.intevation.artifacts.Artifact; 15 import de.intevation.artifacts.Artifact;
15 16
16 import de.intevation.flys.model.Gauge; 17 import de.intevation.flys.model.Gauge;
17 18
56 protected String getYAxisLabel() { 57 protected String getYAxisLabel() {
57 return "W[cm]"; 58 return "W[cm]";
58 } 59 }
59 60
60 61
61 protected XYDataset getXYDataset() { 62 protected void addDatasets(JFreeChart chart) {
62 return dataset; 63 XYPlot plot = (XYPlot) chart.getPlot();
64 plot.setDataset(0, dataset);
63 } 65 }
64 66
65 67
66 public void doOut(Artifact artifact, String facet, Document attr) { 68 public void doOut(Artifact artifact, String facet, Document attr) {
67 logger.debug("DischargeCurveGenerator.doOut: " + facet); 69 logger.debug("DischargeCurveGenerator.doOut: " + facet);

http://dive4elements.wald.intevation.org