Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java @ 534:e08777967bad
Added a first implementation of a MousePositionPanel - work is not finished yet.
flys-client/trunk@2025 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 27 May 2011 15:38:24 +0000 |
parents | 34103ab9fe60 |
children | 75df57220104 |
comparison
equal
deleted
inserted
replaced
533:34103ab9fe60 | 534:e08777967bad |
---|---|
62 ){ | 62 ){ |
63 super(title, collection, mode); | 63 super(title, collection, mode); |
64 | 64 |
65 left = new Canvas(); | 65 left = new Canvas(); |
66 right = new Canvas(); | 66 right = new Canvas(); |
67 tbarPanel = new ChartToolbar(collectionView); | 67 tbarPanel = new ChartToolbar(collectionView, this); |
68 | 68 |
69 left.setBorder("1px solid black"); | 69 left.setBorder("1px solid black"); |
70 left.setWidth(THEMEPANEL_MIN_WIDTH); | 70 left.setWidth(THEMEPANEL_MIN_WIDTH); |
71 left.setMinWidth(THEMEPANEL_MIN_WIDTH); | 71 left.setMinWidth(THEMEPANEL_MIN_WIDTH); |
72 right.setWidth("*"); | 72 right.setWidth("*"); |
124 for (Canvas child: children) { | 124 for (Canvas child: children) { |
125 right.removeChild(child); | 125 right.removeChild(child); |
126 } | 126 } |
127 | 127 |
128 right.addChild(createChartPanel(right.getWidth(), right.getHeight())); | 128 right.addChild(createChartPanel(right.getWidth(), right.getHeight())); |
129 } | |
130 | |
131 | |
132 public Canvas getChartPanel() { | |
133 return right; | |
129 } | 134 } |
130 | 135 |
131 | 136 |
132 protected Canvas createChartPanel() { | 137 protected Canvas createChartPanel() { |
133 return createChartPanel(DEFAULT_CHART_WIDTH, DEFAULT_CHART_HEIGHT); | 138 return createChartPanel(DEFAULT_CHART_WIDTH, DEFAULT_CHART_HEIGHT); |