diff flys-client/src/main/java/de/intevation/flys/client/shared/model/Axis.java @ 1597:8bbaa0d173cf

Save zoom parameters as Number; added new Axis types NumberAxis and DateAxis. flys-client/trunk@3923 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 06 Feb 2012 13:27:05 +0000
parents 460b8e0f0563
children
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/Axis.java	Mon Feb 06 12:38:48 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/Axis.java	Mon Feb 06 13:27:05 2012 +0000
@@ -6,52 +6,16 @@
 /**
  * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
  */
-public class Axis implements Serializable {
-
-    protected int pos;
-
-    protected double from;
-    protected double to;
-
-    protected double min;
-    protected double max;
-
-
-    public Axis() {
-    }
-
-
-    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;
-    }
+public interface Axis extends Serializable {
 
-
-    public int getPos() {
-        return pos;
-    }
-
-
-    public double getFrom() {
-        return from;
-    }
-
+    int getPos();
 
-    public double getTo() {
-        return to;
-    }
-
+    Number getFrom();
 
-    public double getMin() {
-        return min;
-    }
+    Number getTo();
 
+    Number getMin();
 
-    public double getMax() {
-        return max;
-    }
+    Number getMax();
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org