Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java @ 5963:dbbe3085384e
Cosmetics.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 10 May 2013 11:28:04 +0200 |
parents | 172338b1407f |
children | aaa5e5ac5b02 |
comparison
equal
deleted
inserted
replaced
5962:d861efa13272 | 5963:dbbe3085384e |
---|---|
222 root.addMember(layout); | 222 root.addMember(layout); |
223 return root; | 223 return root; |
224 } | 224 } |
225 | 225 |
226 | 226 |
227 /** Callback when km-up-button is clicked. | 227 /** |
228 * Increases collectionViews KM and refreshes view. */ | 228 * Callback when km-up-button is clicked. |
229 * Increases collectionViews KM and refreshes view. | |
230 */ | |
229 protected void updateChartUp() { | 231 protected void updateChartUp() { |
230 double currentKm = collectionView.getCurrentKm(); | 232 double currentKm = collectionView.getCurrentKm(); |
231 if (currentKm < collectionView.getMaxKm()) { | 233 if (currentKm < collectionView.getMaxKm()) { |
232 // Why this math? | 234 // Why this math? |
233 double newVal = currentKm * 100; | 235 double newVal = currentKm * 100; |
237 updateChartPanel(); | 239 updateChartPanel(); |
238 updateChartInfo(); | 240 updateChartInfo(); |
239 } | 241 } |
240 } | 242 } |
241 | 243 |
242 /** Callback when km-down-button is clicked. | 244 /** |
243 * Decreases collectionViews KM and refreshes view. */ | 245 * Callback when km-down-button is clicked. |
246 * Decreases collectionViews KM and refreshes view. | |
247 */ | |
244 protected void updateChartDown() { | 248 protected void updateChartDown() { |
245 double currentKm = collectionView.getCurrentKm(); | 249 double currentKm = collectionView.getCurrentKm(); |
246 if (currentKm > collectionView.getMinKm()) { | 250 if (currentKm > collectionView.getMinKm()) { |
247 // Why this math? | 251 // Why this math? |
248 double newVal = currentKm * 100; | 252 double newVal = currentKm * 100; |