Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/DischargeCurveGenerator.java @ 6882:a77dca301419
Cosmetics.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 21 Aug 2013 11:11:22 +0200 |
parents | be8a5e1911ed |
children | 3df41681f326 |
comparison
equal
deleted
inserted
replaced
6881:32af7e5cb00f | 6882:a77dca301419 |
---|---|
36 */ | 36 */ |
37 public class DischargeCurveGenerator | 37 public class DischargeCurveGenerator |
38 extends XYChartGenerator | 38 extends XYChartGenerator |
39 implements FacetTypes { | 39 implements FacetTypes { |
40 | 40 |
41 /** Beware, in this implementation, the W axis is also in cm! */ | |
41 public static enum YAXIS { | 42 public static enum YAXIS { |
42 WCm(0), | 43 WCm(0), |
43 W(1); | 44 W(1); |
44 protected int idx; | 45 protected int idx; |
45 private YAXIS(int c) { | 46 private YAXIS(int c) { |
83 } | 84 } |
84 return subtractPNP; | 85 return subtractPNP; |
85 } | 86 } |
86 | 87 |
87 | 88 |
89 /** Get the current Gauge datum with default distance tolerance. */ | |
88 public double getCurrentGaugeDatum() { | 90 public double getCurrentGaugeDatum() { |
89 return getCurrentGaugeDatum(getRange()[0], | 91 return getCurrentGaugeDatum(getRange()[0], |
90 (D4EArtifact) getMaster(), 1e-4); | 92 (D4EArtifact) getMaster(), 1e-4); |
91 } | 93 } |
92 | 94 |
224 Object o, | 226 Object o, |
225 String description, | 227 String description, |
226 Document theme, | 228 Document theme, |
227 boolean visible) | 229 boolean visible) |
228 { | 230 { |
231 logger.debug("DischargeCurveGenerator.doDischargeOut"); | |
229 WQKms wqkms = (WQKms) o; | 232 WQKms wqkms = (WQKms) o; |
230 | 233 |
231 String gaugeName = wqkms.getName(); | 234 String gaugeName = wqkms.getName(); |
232 | 235 |
233 River river = RiverUtils.getRiver(artifact); | 236 River river = RiverUtils.getRiver(artifact); |