comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ZoomboxControl.java @ 541:ed29599e06e5

Added the ChartOutputTab as ZoomHandler for the ZoomboxControl - no zooming is done yet. flys-client/trunk@2041 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 01 Jun 2011 14:13:29 +0000
parents a866cdf1ca40
children 9c2cf4811a7d
comparison
equal deleted inserted replaced
540:a866cdf1ca40 541:ed29599e06e5
69 * determined by the start point (mouse down) and the current mouse 69 * determined by the start point (mouse down) and the current mouse
70 * position. 70 * position.
71 */ 71 */
72 protected void initZoombox() { 72 protected void initZoombox() {
73 zoombox.setPosition(Positioning.ABSOLUTE); 73 zoombox.setPosition(Positioning.ABSOLUTE);
74 zoombox.setBackgroundColor("red"); 74 zoombox.setBorder("2px solid black");
75 zoombox.setOpacity(50); 75 zoombox.setOpacity(50);
76 zoombox.setWidth(0); 76 zoombox.setWidth(0);
77 zoombox.setHeight(0); 77 zoombox.setHeight(0);
78 } 78 }
79 79
146 return; 146 return;
147 } 147 }
148 148
149 end[0] = getRelativeX(event.getX()); 149 end[0] = getRelativeX(event.getX());
150 end[1] = getRelativeY(event.getY()); 150 end[1] = getRelativeY(event.getY());
151
152 fireZoomEvent();
151 153
152 clearZoombox(); 154 clearZoombox();
153 155
154 chartTab.getChartPanel().removeChild(zoombox); 156 chartTab.getChartPanel().removeChild(zoombox);
155 } 157 }

http://dive4elements.wald.intevation.org