Class MoveVertexTool
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.DragTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.editing.MoveVertexTool
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,CursorTool
public class MoveVertexTool extends DragTool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
Fields Modifier and Type Field Description static intTOLERANCE-
Fields inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
-
-
Constructor Summary
Constructors Constructor Description MoveVertexTool(EnableCheckFactory checkFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgestureFinished()CursorgetCursor()IcongetIcon()protected ShapegetShape(Point2D source, Point2D destination)voidmousePressed(MouseEvent e)Begins handling of the drag.voidmoveVertices(org.locationtech.jts.geom.Coordinate initialLocation, org.locationtech.jts.geom.Coordinate finalLocation)-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.DragTool
getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mouseReleased, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClick
-
Methods inherited from class org.locationtech.jts.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, mouseClicked, mouseEntered, mouseExited, mouseMoved, name, redrawShape, reportNothingToUndoYet, setColor, setFilling, setStroke, setStrokeWidth, setup, snap, snap, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame
-
-
-
-
Field Detail
-
TOLERANCE
public static final int TOLERANCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MoveVertexTool
public MoveVertexTool(EnableCheckFactory checkFactory)
-
-
Method Detail
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractCursorTool
-
getIcon
public Icon getIcon()
- Returns:
- null to use a default icon
-
gestureFinished
protected void gestureFinished() throws Exception- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
mousePressed
public void mousePressed(MouseEvent e)
Description copied from class:DragToolBegins 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 classDragTool
-
moveVertices
public void moveVertices(org.locationtech.jts.geom.Coordinate initialLocation, org.locationtech.jts.geom.Coordinate finalLocation) throws Exception- Throws:
Exception
-
-