Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/MainValuesWFacet.java @ 2780:772d0c8100d3
Improved 'line-to-curve' rendering.
flys-artifacts/trunk@4519 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 25 May 2012 13:34:46 +0000 |
parents | 5016609663e2 |
children | 0f7abd95c6e2 |
comparison
equal
deleted
inserted
replaced
2779:e57816cf41d5 | 2780:772d0c8100d3 |
---|---|
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 double day = 0d; | 65 double day = 0d; |
66 int mod = (wIncreases) ? -1 : +1; | 66 int mod = (wIncreases) ? -1 : +1; |
67 if (idx != 0 && idx <= wqday.size()-1) { | 67 if (idx != 0 && idx < wqday.size()-1-mod) { |
68 day = Linear.linear(w, wqday.getW(idx +mod), wqday.getW(idx), | 68 day = Linear.linear(w, wqday.getW(idx +mod), wqday.getW(idx), |
69 wqday.getDay(idx+mod), wqday.getDay(idx)); | 69 wqday.getDay(idx+mod), wqday.getDay(idx)); |
70 annotation.setHitPoint((float)day); | 70 annotation.setHitPoint((float)day); |
71 } | 71 } |
72 else { | 72 else { |
88 MainValuesArtifact mvArtifact = (MainValuesArtifact) artifact; | 88 MainValuesArtifact mvArtifact = (MainValuesArtifact) artifact; |
89 | 89 |
90 List<NamedDouble> ws = mvArtifact.getMainValuesW(isAtGauge); | 90 List<NamedDouble> ws = mvArtifact.getMainValuesW(isAtGauge); |
91 List<StickyAxisAnnotation> xy = new ArrayList<StickyAxisAnnotation>(); | 91 List<StickyAxisAnnotation> xy = new ArrayList<StickyAxisAnnotation>(); |
92 | 92 |
93 // BLACKBOARD/DURATIONCURVE / reference point ... | 93 // Find whether a duration curve is on the blackboard. |
94 WQDay wqdays = null; | 94 WQDay wqdays = null; |
95 List<DataProvider> providers = context. | 95 List<DataProvider> providers = context. |
96 getDataProvider(DurationCurveFacet.BB_DURATIONCURVE); | 96 getDataProvider(DurationCurveFacet.BB_DURATIONCURVE); |
97 if (providers.size() < 1) { | 97 if (providers.size() < 1) { |
98 logger.warn("Could not find durationcurve data provider."); | 98 logger.warn("Could not find durationcurve data provider."); |