Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/ChartInfo.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 | ea2191b1299d |
comparison
equal
deleted
inserted
replaced
560:5274b9317e40 | 561:460b8e0f0563 |
---|---|
11 public class ChartInfo implements Serializable { | 11 public class ChartInfo implements Serializable { |
12 | 12 |
13 protected Axis[] xAxes; | 13 protected Axis[] xAxes; |
14 protected Axis[] yAxes; | 14 protected Axis[] yAxes; |
15 | 15 |
16 protected Transform2D transformer; | 16 protected Transform2D[] transformer; |
17 | 17 |
18 | 18 |
19 public ChartInfo() { | 19 public ChartInfo() { |
20 } | 20 } |
21 | 21 |
22 | 22 |
23 public ChartInfo(Axis[] xAxes, Axis[] yAxes, Transform2D transformer) { | 23 public ChartInfo(Axis[] xAxes, Axis[] yAxes, Transform2D[] transformer) { |
24 this.xAxes = xAxes; | 24 this.xAxes = xAxes; |
25 this.yAxes = yAxes; | 25 this.yAxes = yAxes; |
26 this.transformer = transformer; | 26 this.transformer = transformer; |
27 } | 27 } |
28 | 28 |
29 | 29 |
30 public Transform2D getTransformer() { | 30 public Transform2D getTransformer(int pos) { |
31 return transformer; | 31 if (pos >= 0 && pos < transformer.length) { |
32 return transformer[pos]; | |
33 } | |
34 | |
35 return null; | |
32 } | 36 } |
33 | 37 |
34 | 38 |
35 public int getXAxisCount() { | 39 public int getXAxisCount() { |
36 return xAxes.length; | 40 return xAxes.length; |