01: /*
02: * uDig - User Friendly Desktop Internet GIS client
03: * http://udig.refractions.net
04: * (C) 2004, Refractions Research Inc.
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: */
17: package net.refractions.udig.tools.internal;
18:
19: import net.refractions.udig.project.command.factory.NavigationCommandFactory;
20: import net.refractions.udig.project.ui.tool.AbstractActionTool;
21: import net.refractions.udig.project.ui.tool.AbstractTool;
22:
23: /**
24: * This class Provides zoom box and click functionality.
25: *
26: * @author Jesse Eichar
27: * @version $Revision: 1.9 $
28: */
29: public class ZoomExtent extends AbstractActionTool {
30:
31: NavigationCommandFactory factory = NavigationCommandFactory
32: .getInstance();
33:
34: /**
35: * @see AbstractTool#AbstractTool(int)
36: */
37: public ZoomExtent() {
38: super ();
39: }
40:
41: /**
42: * @see net.refractions.udig.project.ui.tool.ActionTool#run()
43: */
44: public void run() {
45: getContext()
46: .sendASyncCommand(factory.createZoomExtentCommand());
47: }
48:
49: public void dispose() {
50: // do nothing
51: }
52: }
|