comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java @ 456:af1b64ec7250

The curve of a computed discharge curve has a human readable text now. flys-artifacts/trunk@1954 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 19 May 2011 12:33:12 +0000
parents 0385bcc4229a
children 45cd58a2a2bb
comparison
equal deleted inserted replaced
455:7137ef65c17c 456:af1b64ec7250
80 80
81 data[0][i] = res[1]; 81 data[0][i] = res[1];
82 data[1][i] = res[0]; 82 data[1][i] = res[0];
83 } 83 }
84 84
85 // TODO find the correct name 85 dataset.addSeries(getSeriesName(wqkms), data);
86 dataset.addSeries("Abflusskurve", data);
87 } 86 }
88 87
89 88
90 protected WQKms getData(Artifact artifact) { 89 protected WQKms getData(Artifact artifact) {
91 logger.debug("ComputedDischargeCurveGenerator.getData"); 90 logger.debug("ComputedDischargeCurveGenerator.getData");
92 91
93 WINFOArtifact winfoArtifact = (WINFOArtifact) artifact; 92 WINFOArtifact winfoArtifact = (WINFOArtifact) artifact;
94 93
95 return winfoArtifact.getComputedDischargeCurveData(); 94 return winfoArtifact.getComputedDischargeCurveData();
96 } 95 }
96
97
98 protected String getSeriesName(WQKms wqkms) {
99 Object[] args = new Object[] {
100 getRiverName(),
101 wqkms.getName()
102 };
103
104 return msg(
105 "chart.computed.discharge.curve.curve.label",
106 "",
107 args);
108 }
97 } 109 }
98 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 110 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org