diff flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 2906:1780841d79af

Added navigation to fix analysis charts. flys-client/trunk@4673 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 15 Jun 2012 12:13:09 +0000
parents 51ed89b754ae
children 725470fc57d2
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Fri Jun 15 09:35:37 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Fri Jun 15 12:13:09 2012 +0000
@@ -118,6 +118,11 @@
     protected int recommendationQueue;
     protected Stack<Recommendation> newRecommendations;
 
+    /** Values for fix analysis charts*/
+    protected double currentKm;
+    protected double minKm;
+    protected double maxKm;
+    protected double steps;
 
     /**
      * This constructor creates a new CollectionView that is used to display the
@@ -140,6 +145,11 @@
         this.recommendationQueue = 0;
         this.newRecommendations = new Stack<Recommendation>();
 
+        this.currentKm = -1d;
+        this.minKm = -1d;
+        this.maxKm = -1d;
+        this.steps = -1d;
+
         addCollectionChangeHandler(this);
         addCollectionChangeHandler(parameterList);
         addCollectionChangeHandler(flys);
@@ -165,6 +175,11 @@
         this.outHandlers   = new ArrayList<OutputModesChangeHandler>();
         this.layout        = new VLayout();
 
+        this.currentKm = -1d;
+        this.minKm = -1d;
+        this.maxKm = -1d;
+        this.steps = -1d;
+
         if (artifact != null) {
             this.parameterList = new ParameterList(
                 flys,
@@ -679,5 +694,38 @@
     public void registerTabHandler(TabSelectedHandler tse) {
         tabs.addTabSelectedHandler(tse);
     }
+
+
+    public void setCurrentKm(double currentKm) {
+        this.currentKm = currentKm;
+    }
+
+    public double getCurrentKm() {
+        return this.currentKm;
+    }
+
+    public void setMinKm(double km) {
+        this.minKm = km;
+    }
+
+    public double getMinKm() {
+        return this.minKm;
+    }
+
+    public void setMaxKm(double km) {
+        this.maxKm = km;
+    }
+
+    public double getMaxKm() {
+        return this.maxKm;
+    }
+
+    public void setSteps(double step) {
+        this.steps = step;
+    }
+
+    public double getSteps() {
+        return this.steps;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org