com.vividsolutions.jump.workbench.ui.cursortool.editing
Class InsertVertexTool

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended by com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
          extended by com.vividsolutions.jump.workbench.ui.cursortool.NClickTool
              extended by com.vividsolutions.jump.workbench.ui.cursortool.editing.InsertVertexTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class InsertVertexTool
extends NClickTool


Nested Class Summary
protected static class InsertVertexTool.SegmentContext
           
 
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Constructor Summary
InsertVertexTool(EnableCheckFactory checkFactory)
           
 
Method Summary
protected  void gestureFinished()
           
protected  void gestureFinished(com.vividsolutions.jts.geom.Geometry newGeometry, com.vividsolutions.jts.geom.Coordinate newVertex, InsertVertexTool.SegmentContext segment)
           
 java.awt.Cursor getCursor()
           
 javax.swing.Icon getIcon()
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.NClickTool
getModelDestination, getModelSource, isFinishingRelease
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
activate, add, cancelGesture, deactivate, finishGesture, getCoordinates, getMetrics, getShape, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, toArray
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
add, allowSnapping, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, 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
 

Constructor Detail

InsertVertexTool

public InsertVertexTool(EnableCheckFactory checkFactory)
Method Detail

gestureFinished

protected void gestureFinished()
                        throws java.lang.Exception
Specified by:
gestureFinished in class AbstractCursorTool
Throws:
java.lang.Exception

gestureFinished

protected void gestureFinished(com.vividsolutions.jts.geom.Geometry newGeometry,
                               com.vividsolutions.jts.geom.Coordinate newVertex,
                               InsertVertexTool.SegmentContext segment)

getIcon

public javax.swing.Icon getIcon()
Returns:
null to use a default icon

getCursor

public java.awt.Cursor getCursor()
Specified by:
getCursor in interface CursorTool
Overrides:
getCursor in class AbstractCursorTool