public class MoveVertexTool extends DragTool
AbstractCursorTool.Listener| Modifier and Type | Field and Description |
|---|---|
static int |
TOLERANCE |
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource| Constructor and Description |
|---|
MoveVertexTool(EnableCheckFactory checkFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
gestureFinished() |
Cursor |
getCursor() |
Icon |
getIcon() |
protected Shape |
getShape(Point2D source,
Point2D destination) |
void |
mousePressed(MouseEvent e)
Begins handling of the drag.
|
void |
moveVertices(com.vividsolutions.jts.geom.Coordinate initialLocation,
com.vividsolutions.jts.geom.Coordinate finalLocation) |
getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mouseReleased, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClickactivate, 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, workbenchFramepublic static final int TOLERANCE
public MoveVertexTool(EnableCheckFactory checkFactory)
public Cursor getCursor()
getCursor in interface CursorToolgetCursor in class AbstractCursorToolpublic Icon getIcon()
protected void gestureFinished()
throws Exception
gestureFinished in class AbstractCursorToolExceptionpublic void mousePressed(MouseEvent e)
DragToolmousePressed in interface MouseListenermousePressed in class DragToolpublic void moveVertices(com.vividsolutions.jts.geom.Coordinate initialLocation,
com.vividsolutions.jts.geom.Coordinate finalLocation)
throws Exception
ExceptionCopyright © 2015. All rights reserved.