Class ConstrainedMoveVertexTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedDragTool
org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMoveVertexTool
- All Implemented Interfaces:
CursorTool, MouseListener, MouseMotionListener, EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCursorTool
AbstractCursorTool.Listener -
Field Summary
FieldsFields inherited from class ConstrainedDragTool
coordinates, DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSourceFields inherited from class AbstractCursorTool
isLinuxOS, panel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetIcon()getName()Returns a very brief description of this CursorTool.protected ShapevoidBegins handling of the drag.voidmoveVertices(org.locationtech.jts.geom.Coordinate initialLocation, org.locationtech.jts.geom.Coordinate finalLocation) Methods inherited from class ConstrainedDragTool
activate, doConstraint, getBoxInModelCoordinates, getCoordinates, getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mouseLocationChanged, mouseReleased, setModelSource, setViewClickBuffer, setViewSource, wasClickMethods inherited from class AbstractCursorTool
add, allowSnapping, cancelGesture, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getImage, getImagePosition, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, mouseMoved, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setControlPressed, setFilling, setPanel, setShiftPressed, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed
-
Field Details
-
TOLERANCE
public static final int TOLERANCE- See Also:
-
-
Constructor Details
-
ConstrainedMoveVertexTool
-
-
Method Details
-
getCursor
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractCursorTool
-
getIcon
- Returns:
- null to use a default icon
-
getName
Description copied from interface:CursorToolReturns a very brief description of this CursorTool.- Specified by:
getNamein interfaceCursorTool- Overrides:
getNamein classAbstractCursorTool- Returns:
- the name of this CursorTool
-
gestureFinished
- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
mousePressed
Description copied from class:ConstrainedDragToolBegins handling of the drag. Subclasses can prevent handling of the drag by overriding this method and not calling it.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classConstrainedDragTool
-
moveVertices
-
getShape
-