[Dive4elements-commits] [PATCH 4 of 4] NaviChartOutputTab: Doc

Wald Commits scm-commit at wald.intevation.org
Tue Oct 30 10:40:39 CET 2012


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1351590316 -3600
# Node ID e7f7be368cf32b3a931610abe1ac305ff286a29c
# Parent  c3ac330d9be4891484a566f78128440479664665
NaviChartOutputTab: Doc.

diff -r c3ac330d9be4 -r e7f7be368cf3 flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/NaviChartOutputTab.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/NaviChartOutputTab.java	Tue Oct 30 10:44:54 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/NaviChartOutputTab.java	Tue Oct 30 10:45:16 2012 +0100
@@ -202,9 +202,12 @@
     }
 
 
+    /** Callback when km-up-button is clicked.
+     * Increases collectionViews KM and refreshes view. */
     protected void updateChartUp() {
         double currentKm = collectionView.getCurrentKm();
         if (currentKm < collectionView.getMaxKm()) {
+            // Why this math?
             double newVal = currentKm * 100;
             newVal += (collectionView.getSteps() / 10);
             collectionView.setCurrentKm((double)Math.round(newVal) / 100);
@@ -213,9 +216,13 @@
             updateChartInfo();
         }
     }
+
+    /** Callback when km-down-button is clicked.
+     * Decreases collectionViews KM and refreshes view. */
     protected void updateChartDown() {
         double currentKm = collectionView.getCurrentKm();
         if (currentKm > collectionView.getMinKm()) {
+            // Why this math?
             double newVal = currentKm * 100;
             newVal -= (collectionView.getSteps() / 10);
             collectionView.setCurrentKm((double)Math.round(newVal) / 100);


More information about the Dive4elements-commits mailing list