Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/NaviChartOutputTab.java @ 3499:17c66d38f095
FixA: Added AT file export to FixAnalysis W/Q.
flys-client/trunk@5223 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 17 Aug 2012 11:18:15 +0000 |
parents | bf080e932d54 |
children | a17d0afd0db9 |
comparison
equal
deleted
inserted
replaced
3498:92239b53823f | 3499:17c66d38f095 |
---|---|
161 d = -1d; | 161 d = -1d; |
162 } | 162 } |
163 if (d <= collectionView.getMaxKm() && | 163 if (d <= collectionView.getMaxKm() && |
164 d >= collectionView.getMinKm()) { | 164 d >= collectionView.getMinKm()) { |
165 collectionView.setCurrentKm(d); | 165 collectionView.setCurrentKm(d); |
166 tbarPanel.updateLinks(); | |
166 if (right != null) { | 167 if (right != null) { |
167 updateChartPanel(); | 168 updateChartPanel(); |
168 updateChartInfo(); | 169 updateChartInfo(); |
169 } | 170 } |
170 } | 171 } |
189 double currentKm = collectionView.getCurrentKm(); | 190 double currentKm = collectionView.getCurrentKm(); |
190 if (currentKm < collectionView.getMaxKm()) { | 191 if (currentKm < collectionView.getMaxKm()) { |
191 double newVal = currentKm * 100; | 192 double newVal = currentKm * 100; |
192 newVal += (collectionView.getSteps() / 10); | 193 newVal += (collectionView.getSteps() / 10); |
193 collectionView.setCurrentKm((double)Math.round(newVal) / 100); | 194 collectionView.setCurrentKm((double)Math.round(newVal) / 100); |
195 tbarPanel.updateLinks(); | |
194 updateChartPanel(); | 196 updateChartPanel(); |
195 updateChartInfo(); | 197 updateChartInfo(); |
196 } | 198 } |
197 } | 199 } |
198 protected void updateChartDown() { | 200 protected void updateChartDown() { |
199 double currentKm = collectionView.getCurrentKm(); | 201 double currentKm = collectionView.getCurrentKm(); |
200 if (currentKm > collectionView.getMinKm()) { | 202 if (currentKm > collectionView.getMinKm()) { |
201 double newVal = currentKm * 100; | 203 double newVal = currentKm * 100; |
202 newVal -= (collectionView.getSteps() / 10); | 204 newVal -= (collectionView.getSteps() / 10); |
203 collectionView.setCurrentKm((double)Math.round(newVal) / 100); | 205 collectionView.setCurrentKm((double)Math.round(newVal) / 100); |
206 tbarPanel.updateLinks(); | |
204 updateChartPanel(); | 207 updateChartPanel(); |
205 updateChartInfo(); | 208 updateChartInfo(); |
206 } | 209 } |
207 | 210 |
208 } | 211 } |