Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 718:f3fd8c9b7f51
#157 Computed discharge curve charts always have a lower bound set to 0.
flys-artifacts/trunk@2192 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 21 Jun 2011 18:10:49 +0000 |
parents | be4709640aac |
children | 7ca4a287cd0e |
comparison
equal
deleted
inserted
replaced
717:be4709640aac | 718:f3fd8c9b7f51 |
---|---|
131 XYDataset dataset = plot.getDataset(i); | 131 XYDataset dataset = plot.getDataset(i); |
132 Range[] ranges = getRangesForDataset(dataset); | 132 Range[] ranges = getRangesForDataset(dataset); |
133 | 133 |
134 if (i == 0) { | 134 if (i == 0) { |
135 ValueAxis xaxis = plot.getDomainAxis(); | 135 ValueAxis xaxis = plot.getDomainAxis(); |
136 zoom(plot, xaxis, ranges[0], xrange); | 136 zoomX(plot, xaxis, ranges[0], xrange); |
137 } | 137 } |
138 | 138 |
139 ValueAxis yaxis = plot.getRangeAxis(i); | 139 ValueAxis yaxis = plot.getRangeAxis(i); |
140 | 140 |
141 if (yaxis == null) { | 141 if (yaxis == null) { |
142 continue; | 142 continue; |
143 } | 143 } |
144 | 144 |
145 zoom(plot, yaxis, ranges[1], yrange); | 145 zoomY(plot, yaxis, ranges[1], yrange); |
146 } | 146 } |
147 } | |
148 | |
149 | |
150 protected boolean zoomX(XYPlot plot, ValueAxis axis, Range range, Range x) { | |
151 return zoom(plot, axis, range, x); | |
152 } | |
153 | |
154 | |
155 protected boolean zoomY(XYPlot plot, ValueAxis axis, Range range, Range x) { | |
156 return zoom(plot, axis, range, x); | |
147 } | 157 } |
148 | 158 |
149 | 159 |
150 /** | 160 /** |
151 * Zooms the x axis to the range specified in the attribute document. | 161 * Zooms the x axis to the range specified in the attribute document. |