com.vividsolutions.jump.workbench.ui.cursortool.editing
Class SnapVerticesTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.cursortool.DragTool
com.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool
com.vividsolutions.jump.workbench.ui.cursortool.editing.SnapVerticesTool
- All Implemented Interfaces:
- CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
public class SnapVerticesTool
- extends SpecifyFeaturesTool
| Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool |
getModelDestination, getModelSource, 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 |
SnapVerticesTool
public SnapVerticesTool(EnableCheckFactory checkFactory)
gestureFinished
protected void gestureFinished()
throws java.lang.Exception
- Specified by:
gestureFinished in class AbstractCursorTool
- Throws:
java.lang.Exception
snapVertices
protected void snapVertices(java.util.Collection editableLayers,
com.vividsolutions.jts.geom.Coordinate suggestedTarget,
Feature targetFeature)
throws java.lang.Exception,
java.awt.geom.NoninvertibleTransformException
- Throws:
java.lang.Exception
java.awt.geom.NoninvertibleTransformException
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
getBoxInModelCoordinates
protected com.vividsolutions.jts.geom.Envelope getBoxInModelCoordinates()
throws java.awt.geom.NoninvertibleTransformException
- Overrides:
getBoxInModelCoordinates in class DragTool
- Throws:
java.awt.geom.NoninvertibleTransformException
getShape
protected java.awt.Shape getShape()
throws java.lang.Exception
- Overrides:
getShape in class DragTool
- Returns:
- null if nothing should be drawn
- Throws:
java.lang.Exception