Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java @ 2587:bece6f604899
Removed references to Range and replaced those with references to Bounds in ChartGenerators.
flys-artifacts/trunk@4143 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 15 Mar 2012 10:30:03 +0000 |
parents | a992ab2588a8 |
children | 15a3684c6bce |
comparison
equal
deleted
inserted
replaced
2586:8cd6358eb7f8 | 2587:bece6f604899 |
---|---|
18 | 18 |
19 import de.intevation.flys.artifacts.model.FacetTypes; | 19 import de.intevation.flys.artifacts.model.FacetTypes; |
20 import de.intevation.flys.artifacts.model.WQDay; | 20 import de.intevation.flys.artifacts.model.WQDay; |
21 import de.intevation.flys.artifacts.resources.Resources; | 21 import de.intevation.flys.artifacts.resources.Resources; |
22 | 22 |
23 import de.intevation.flys.jfree.Bounds; | |
23 import de.intevation.flys.jfree.FLYSAnnotation; | 24 import de.intevation.flys.jfree.FLYSAnnotation; |
24 import de.intevation.flys.jfree.StyledXYSeries; | 25 import de.intevation.flys.jfree.StyledXYSeries; |
25 | 26 |
26 | 27 |
27 /** | 28 /** |
146 return label; | 147 return label; |
147 } | 148 } |
148 | 149 |
149 | 150 |
150 @Override | 151 @Override |
151 protected boolean zoomX(XYPlot plot, ValueAxis axis, Range range, Range x) { | 152 protected boolean zoomX(XYPlot plot, ValueAxis axis, Bounds bounds, Range x) { |
152 boolean zoomin = super.zoom(plot, axis, range, x); | 153 boolean zoomin = super.zoom(plot, axis, bounds, x); |
153 | 154 |
154 if (!zoomin) { | 155 if (!zoomin) { |
155 axis.setLowerBound(0d); | 156 axis.setLowerBound(0d); |
156 } | 157 } |
157 | 158 |
165 * This method overrides the method in the parent class to set the lower | 166 * This method overrides the method in the parent class to set the lower |
166 * bounds of the Q axis to 0. This axis should never display negative | 167 * bounds of the Q axis to 0. This axis should never display negative |
167 * values on its own. | 168 * values on its own. |
168 */ | 169 */ |
169 @Override | 170 @Override |
170 protected boolean zoomY(XYPlot plot, ValueAxis axis, Range range, Range x) { | 171 protected boolean zoomY(XYPlot plot, ValueAxis axis, Bounds bounds, Range x) { |
171 boolean zoomin = super.zoom(plot, axis, range, x); | 172 boolean zoomin = super.zoom(plot, axis, bounds, x); |
172 | 173 |
173 if (!zoomin && axis instanceof IdentifiableNumberAxis) { | 174 if (!zoomin && axis instanceof IdentifiableNumberAxis) { |
174 String id = ((IdentifiableNumberAxis) axis).getId(); | 175 String id = ((IdentifiableNumberAxis) axis).getId(); |
175 | 176 |
176 if (YAXIS.Q.toString().equals(id)) { | 177 if (YAXIS.Q.toString().equals(id)) { |