com.vividsolutions.jump.workbench.ui.cursortool
Class DragTool

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended by com.vividsolutions.jump.workbench.ui.cursortool.DragTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
Direct Known Subclasses:
EditDelineationTool, MoveSelectedItemsTool, MoveVertexTool, PanTool, RectangleTool, SelectTool, SpecifyFeaturesTool, ZoomTool

public abstract class DragTool
extends AbstractCursorTool

The default implementation draws a selection box, but this can be overridden (even to draw nothing).


Nested Class Summary
 
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Field Summary
static int DEFAULT_VIEW_CLICK_BUFFER
           
 
Constructor Summary
DragTool()
           
 
Method Summary
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
          Begins handling of the drag.
 void mouseReleased(java.awt.event.MouseEvent e)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, cancelGesture, createCursor, createCursor, createStandardSnappingPolicies, deactivate, getColor, getCursor, getName, getSnapManager, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, mouseMoved, name, setColor, toString, workbench, workbenchFrame
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.vividsolutions.jump.workbench.ui.cursortool.CursorTool
getIcon
 

Field Detail

DEFAULT_VIEW_CLICK_BUFFER

public static final int DEFAULT_VIEW_CLICK_BUFFER
See Also:
Constant Field Values
Constructor Detail

DragTool

public DragTool()
Method Detail

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Begins handling of the drag. Subclasses can prevent handling of the drag by overriding this method and not calling it.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class AbstractCursorTool

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class AbstractCursorTool

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class AbstractCursorTool