comparison 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
comparison
equal deleted inserted replaced
1596:0685a4969e93 1597:8bbaa0d173cf
4 4
5 5
6 /** 6 /**
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
8 */ 8 */
9 public class Axis implements Serializable { 9 public interface Axis extends Serializable {
10 10
11 protected int pos; 11 int getPos();
12 12
13 protected double from; 13 Number getFrom();
14 protected double to;
15 14
16 protected double min; 15 Number getTo();
17 protected double max;
18 16
17 Number getMin();
19 18
20 public Axis() { 19 Number getMax();
21 }
22
23
24 public Axis(int pos, double from, double to, double min, double max) {
25 this.pos = pos;
26 this.from = from;
27 this.to = to;
28 this.min = min;
29 this.max = max;
30 }
31
32
33 public int getPos() {
34 return pos;
35 }
36
37
38 public double getFrom() {
39 return from;
40 }
41
42
43 public double getTo() {
44 return to;
45 }
46
47
48 public double getMin() {
49 return min;
50 }
51
52
53 public double getMax() {
54 return max;
55 }
56 } 20 }
57 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 21 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org