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

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended by com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
Direct Known Subclasses:
DrawLineStringTool, MeasureTool, NClickTool, PolygonTool

public abstract class MultiClickTool
extends AbstractCursorTool

A VisualIndicatorTool that allows the user to draw shapes with multiple vertices. Double-clicking ends the gesture.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Constructor Summary
MultiClickTool()
           
 
Method Summary
 void cancelGesture()
          Notifies the CursorTool that a party is requesting that the gesture currently in progress be aborted.
 java.util.List getCoordinates()
          Will return an empty List once the shape is cleared.
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, createCursor, createCursor, createStandardSnappingPolicies, deactivate, getColor, getCursor, getName, getSnapManager, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, 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
 

Constructor Detail

MultiClickTool

public MultiClickTool()
Method Detail

getCoordinates

public java.util.List getCoordinates()
Will return an empty List once the shape is cleared.

See Also:
AbstractCursorTool.clearShape()

cancelGesture

public void cancelGesture()
Description copied from interface: CursorTool
Notifies the CursorTool that a party is requesting that the gesture currently in progress be aborted.

Specified by:
cancelGesture in interface CursorTool
Overrides:
cancelGesture 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

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved 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

mousePressed

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