Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/ChartInfo.java @ 552:6050d49eaba3
Adapted the ChartInfoService to return more information about charts than before. In addition, the PanControl is added to the chart toolbar.
flys-client/trunk@2066 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 07 Jun 2011 13:26:24 +0000 |
parents | |
children | 460b8e0f0563 |
comparison
equal
deleted
inserted
replaced
551:13c7f90917fc | 552:6050d49eaba3 |
---|---|
1 package de.intevation.flys.client.shared.model; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 import de.intevation.flys.client.shared.Transform2D; | |
6 | |
7 | |
8 /** | |
9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
10 */ | |
11 public class ChartInfo implements Serializable { | |
12 | |
13 protected Axis[] xAxes; | |
14 protected Axis[] yAxes; | |
15 | |
16 protected Transform2D transformer; | |
17 | |
18 | |
19 public ChartInfo() { | |
20 } | |
21 | |
22 | |
23 public ChartInfo(Axis[] xAxes, Axis[] yAxes, Transform2D transformer) { | |
24 this.xAxes = xAxes; | |
25 this.yAxes = yAxes; | |
26 this.transformer = transformer; | |
27 } | |
28 | |
29 | |
30 public Transform2D getTransformer() { | |
31 return transformer; | |
32 } | |
33 | |
34 | |
35 public int getXAxisCount() { | |
36 return xAxes.length; | |
37 } | |
38 | |
39 | |
40 public int getYAxisCount() { | |
41 return yAxes.length; | |
42 } | |
43 | |
44 | |
45 public Axis getXAxis(int pos) { | |
46 if (pos >= 0 && pos < xAxes.length) { | |
47 return xAxes[pos]; | |
48 } | |
49 | |
50 return null; | |
51 } | |
52 | |
53 | |
54 public Axis getYAxis(int pos) { | |
55 if (pos >= 0 && pos < yAxes.length) { | |
56 return yAxes[pos]; | |
57 } | |
58 | |
59 return null; | |
60 } | |
61 } | |
62 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |