Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java @ 855:2c48d75c4ab7
Minor cosmetics.
flys-client/trunk@2647 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 06 Sep 2011 07:14:17 +0000 |
parents | f1a559d13eef |
children | 9f07f67f60a5 |
comparison
equal
deleted
inserted
replaced
854:67c678903280 | 855:2c48d75c4ab7 |
---|---|
39 /** | 39 /** |
40 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 40 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
41 */ | 41 */ |
42 public class ChartOutputTab | 42 public class ChartOutputTab |
43 extends OutputTab | 43 extends OutputTab |
44 implements ResizedHandler, OutputParameterChangeHandler, ZoomHandler, | 44 implements ResizedHandler, |
45 OutputParameterChangeHandler, | |
46 ZoomHandler, | |
45 PanHandler | 47 PanHandler |
46 { | 48 { |
47 public static final int DEFAULT_CHART_WIDTH = 600; | 49 public static final int DEFAULT_CHART_WIDTH = 600; |
48 public static final int DEFAULT_CHART_HEIGHT = 500; | 50 public static final int DEFAULT_CHART_HEIGHT = 500; |
49 | 51 |
50 public static final int THEMEPANEL_MIN_WIDTH = 200; | 52 public static final int THEMEPANEL_MIN_WIDTH = 200; |
51 | 53 |
52 | 54 |
53 /** The service that is used to fetch chart information.*/ | 55 /** The service that is used to fetch chart information. */ |
54 protected ChartInfoServiceAsync info = GWT.create(ChartInfoService.class); | 56 protected ChartInfoServiceAsync info = GWT.create(ChartInfoService.class); |
55 | 57 |
56 | 58 |
57 /** The ChartInfo object that provides information about the current | 59 /** The ChartInfo object that provides information about the current |
58 * chart.*/ | 60 * chart. */ |
59 protected ChartInfo chartInfo; | 61 protected ChartInfo chartInfo; |
60 | 62 |
61 /** The transformer used to transform image pixels into chart coordinates.*/ | 63 /** Transformer used to transform image pixels into chart coordinates. */ |
62 protected Transform2D[] transformer; | 64 protected Transform2D[] transformer; |
63 | 65 |
64 /** The collection view.*/ | 66 /** The collection view.*/ |
65 protected CollectionView view; | 67 protected CollectionView view; |
66 | 68 |
67 | 69 |
68 /** The canvas that wraps the chart toolbar.*/ | 70 /** The canvas that wraps the chart toolbar. */ |
69 protected Canvas tbarPanel; | 71 protected Canvas tbarPanel; |
70 | 72 |
71 /** The canvas that wraps the theme editor.*/ | 73 /** The canvas that wraps the theme editor. */ |
72 protected Canvas left; | 74 protected Canvas left; |
73 | 75 |
74 /** The canvas that wraps the chart.*/ | 76 /** The canvas that wraps the chart. */ |
75 protected Canvas right; | 77 protected Canvas right; |
76 | 78 |
77 protected Img chart; | 79 protected Img chart; |
78 | 80 |
79 | 81 |
80 /** Chart zoom options.*/ | 82 /** Chart zoom options. */ |
81 protected int[] xrange; | 83 protected int[] xrange; |
82 protected int[] yrange; | 84 protected int[] yrange; |
83 | 85 |
84 protected double[] zoom; | 86 protected double[] zoom; |
85 | 87 |
88 * The default constructor to create a new ChartOutputTab. | 90 * The default constructor to create a new ChartOutputTab. |
89 * | 91 * |
90 * @param title The title of this tab. | 92 * @param title The title of this tab. |
91 * @param collection The Collection which this chart belongs to. | 93 * @param collection The Collection which this chart belongs to. |
92 * @param mode The OutputMode. | 94 * @param mode The OutputMode. |
95 * @param collvetionView The shown collection. | |
93 */ | 96 */ |
94 public ChartOutputTab( | 97 public ChartOutputTab( |
95 String title, | 98 String title, |
96 Collection collection, | 99 Collection collection, |
97 OutputMode mode, | 100 OutputMode mode, |
120 hLayout.setMembersMargin(10); | 123 hLayout.setMembersMargin(10); |
121 | 124 |
122 hLayout.addMember(left); | 125 hLayout.addMember(left); |
123 hLayout.addMember(right); | 126 hLayout.addMember(right); |
124 | 127 |
128 // TODO Spawn a specific ThemePanel subclass (e.g. "actions" column is | |
129 // not needed in all cases. | |
125 ChartThemePanel ctp = new ChartThemePanel(collection, mode); | 130 ChartThemePanel ctp = new ChartThemePanel(collection, mode); |
126 ctp.addOutputParameterChangeHandler(this); | 131 ctp.addOutputParameterChangeHandler(this); |
127 | 132 |
128 chart = createChartImg(); | 133 chart = createChartImg(); |
129 right.addChild(chart); | 134 right.addChild(chart); |