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

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended bycom.vividsolutions.jump.workbench.ui.cursortool.DragTool
          extended bycom.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool
              extended bycom.vividsolutions.jump.workbench.ui.cursortool.editing.DeleteVertexTool
All Implemented Interfaces:
CursorTool, java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public class DeleteVertexTool
extends SpecifyFeaturesTool


Nested Class Summary
 
Nested classes inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Field Summary
 
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
 
Constructor Summary
DeleteVertexTool(EnableCheckFactory checkFactory)
           
 
Method Summary
protected  EditTransaction createTransaction(Layer layer, java.util.ArrayList verticesDeleted)
           
protected  void gestureFinished()
           
 java.awt.Cursor getCursor()
           
 javax.swing.Icon getIcon()
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool
candidateLayersIterator, layerToSpecifiedFeaturesMap, layerToSpecifiedFeaturesMap, mouseClicked, specifiedFeatures, specifiedFeatures
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mousePressed, mouseReleased, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClick
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, cancelGesture, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getName, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseEntered, mouseExited, mouseMoved, 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

DeleteVertexTool

public DeleteVertexTool(EnableCheckFactory checkFactory)
Method Detail

gestureFinished

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

createTransaction

protected EditTransaction createTransaction(Layer layer,
                                            java.util.ArrayList verticesDeleted)
                                     throws java.awt.geom.NoninvertibleTransformException
Throws:
java.awt.geom.NoninvertibleTransformException

getCursor

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

getIcon

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