Mercurial > dive4elements > river
changeset 4339:ff83ec9b4c0b
FixWQCurveGenerator: For extreme_wq_curves, add marker to indicate where extrapolation starts.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 31 Oct 2012 14:09:36 +0100 (2012-10-31) |
parents | 88064d351bcc |
children | 64528d2a89c4 |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java Wed Oct 31 14:08:38 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java Wed Oct 31 14:09:36 2012 +0100 @@ -262,6 +262,14 @@ 0.0 , // start maxQ); // end + // Add marker from where on its extrapolated. + double[] qs = curve.getQs(); + double extrapolateFrom = qs[qs.length-1]; + + Marker m = new ValueMarker(extrapolateFrom); + m.setPaint(Color.black); + addDomainMarker(m); + addAxisSeries(series, 0, visible); }