comparison 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
comparison
equal deleted inserted replaced
560:5274b9317e40 561:460b8e0f0563
11 protected int pos; 11 protected int pos;
12 12
13 protected double from; 13 protected double from;
14 protected double to; 14 protected double to;
15 15
16 protected double min;
17 protected double max;
18
16 19
17 public Axis() { 20 public Axis() {
18 } 21 }
19 22
20 23
21 public Axis(int pos, double from, double to) { 24 public Axis(int pos, double from, double to, double min, double max) {
22 this.pos = pos; 25 this.pos = pos;
23 this.from = from; 26 this.from = from;
24 this.to = to; 27 this.to = to;
28 this.min = min;
29 this.max = max;
25 } 30 }
26 31
27 32
28 public int getPos() { 33 public int getPos() {
29 return pos; 34 return pos;
36 41
37 42
38 public double getTo() { 43 public double getTo() {
39 return to; 44 return to;
40 } 45 }
46
47
48 public double getMin() {
49 return min;
50 }
51
52
53 public double getMax() {
54 return max;
55 }
41 } 56 }
42 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 57 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org