diff flys-client/src/main/java/de/intevation/flys/client/shared/model/Axis.java @ 561:460b8e0f0563

Parse the min/max axes ranges for the ChartInfo and modified the zoom and pan actions to match the current server implementation. flys-client/trunk@2096 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 09 Jun 2011 10:57:42 +0000
parents 6050d49eaba3
children 8bbaa0d173cf
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/Axis.java	Thu Jun 09 06:05:44 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/Axis.java	Thu Jun 09 10:57:42 2011 +0000
@@ -13,15 +13,20 @@
     protected double from;
     protected double to;
 
+    protected double min;
+    protected double max;
+
 
     public Axis() {
     }
 
 
-    public Axis(int pos, double from, double to) {
+    public Axis(int pos, double from, double to, double min, double max) {
         this.pos  = pos;
         this.from = from;
         this.to   = to;
+        this.min  = min;
+        this.max  = max;
     }
 
 
@@ -38,5 +43,15 @@
     public double getTo() {
         return to;
     }
+
+
+    public double getMin() {
+        return min;
+    }
+
+
+    public double getMax() {
+        return max;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org