com.vividsolutions.jump.workbench.ui.cursortool.editing
Class MoveSelectedItemsTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.cursortool.DragTool
com.vividsolutions.jump.workbench.ui.cursortool.editing.MoveSelectedItemsTool
- All Implemented Interfaces:
- CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
public class MoveSelectedItemsTool
- extends DragTool
| Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool |
getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mouseReleased, 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, mouseClicked, mouseEntered, mouseExited, 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 |
clockwise
protected boolean clockwise
MoveSelectedItemsTool
public MoveSelectedItemsTool(EnableCheckFactory checkFactory)
gestureFinished
protected void gestureFinished()
throws java.lang.Exception
- Specified by:
gestureFinished in class AbstractCursorTool
- Throws:
java.lang.Exception
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
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener- Overrides:
mouseMoved in class AbstractCursorTool
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Description copied from class:
DragTool
- Begins handling of the drag. Subclasses can prevent handling of the drag
by overriding this method and not calling it.
- Specified by:
mousePressed in interface java.awt.event.MouseListener- Overrides:
mousePressed in class DragTool
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
setModelDestination
protected void setModelDestination(com.vividsolutions.jts.geom.Coordinate modelDestination)
- Overrides:
setModelDestination in class DragTool