Allows the user to drag the map with the mouse. @author Michael Bedward @since 2.6 @source $URL$
31323334353637383940
public OperateManager(MapCtrl mapBox,Component component) { plugs = new ArrayList<Tool>(); this.mapBox = mapBox; commandManager=new CommandStack(); addPlug(new PanTool()); addPlug(new ZoomTool()); ComponentUtils.bindEvent(this, component); }
62636465666768
* map pane's cursor tool being set to a PanTool object * * @param ev the event (not used) */ public void actionPerformed(ActionEvent ev) { getMapPane().setCursorTool(new PanTool()); }
35363738394041
public PanAction() { super(PanTool.TOOL_NAME + "@P", PanTool.TOOL_TIP, ImageCache.getInstance().getImage(ImageCache.IMAGE_PAN)); } public void run() { getMapPane().setCursorTool(new PanTool()); }