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

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended bycom.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
          extended bycom.vividsolutions.jump.workbench.ui.cursortool.NClickTool
All Implemented Interfaces:
CursorTool, java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Direct Known Subclasses:
CreateDelineationTool, DrawPointTool, InsertVertexTool, NoteTool, SnapVerticesToSelectedVertexClickTool, VectorTool

public abstract class NClickTool
extends MultiClickTool

Whereas a MultiClickTool looks for a double-click to end the gesture, an NClickTool looks for a certain number of points to end the gesture.


Nested Class Summary
 
Nested classes inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Constructor Summary
NClickTool(int n)
           
 
Method Summary
protected  com.vividsolutions.jts.geom.Coordinate getModelDestination()
           
protected  com.vividsolutions.jts.geom.Coordinate getModelSource()
           
protected  boolean isFinishingRelease(java.awt.event.MouseEvent e)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
add, cancelGesture, finishGesture, getCoordinates, getMetrics, getShape, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, toArray
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, gestureFinished, getColor, getCursor, getName, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, name, redrawShape, reportNothingToUndoYet, setColor, setFilling, setStroke, setStrokeWidth, setup, snap, snap, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.vividsolutions.jump.workbench.ui.cursortool.CursorTool
getIcon
 

Constructor Detail

NClickTool

public NClickTool(int n)
Method Detail

getModelSource

protected com.vividsolutions.jts.geom.Coordinate getModelSource()

getModelDestination

protected com.vividsolutions.jts.geom.Coordinate getModelDestination()

isFinishingRelease

protected boolean isFinishingRelease(java.awt.event.MouseEvent e)
Overrides:
isFinishingRelease in class MultiClickTool