Class RotateSelectedItemTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.cursortool.DragTool
org.openjump.core.ui.plugin.edittoolbox.cursortools.RotateSelectedItemTool
- All Implemented Interfaces:
CursorTool, ShortcutsDescriptor, MouseListener, MouseMotionListener, EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCursorTool
AbstractCursorTool.Listener -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected static org.locationtech.jts.geom.GeometryFactoryFields inherited from class DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSourceFields inherited from class AbstractCursorTool
isLinuxOS, panel -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DragTool
getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mouseReleased, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClickMethods inherited from class AbstractCursorTool
add, allowSnapping, cancelGesture, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getImage, getImagePosition, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setControlPressed, setFilling, setPanel, setShiftPressed, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed
-
Field Details
-
clockwise
protected boolean clockwise -
geomFac
protected static org.locationtech.jts.geom.GeometryFactory geomFac
-
-
Constructor Details
-
RotateSelectedItemTool
-
-
Method Details
-
activate
- Specified by:
activatein interfaceCursorTool- Overrides:
activatein classAbstractCursorTool
-
deactivate
public void deactivate()- Specified by:
deactivatein interfaceCursorTool- Overrides:
deactivatein classDragTool
-
gestureFinished
- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
getCursor
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractCursorTool
-
getIcon
- Specified by:
getIconin interfaceCursorTool- Returns:
- null to use a default icon
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classAbstractCursorTool
-
getName
Description copied from interface:CursorToolReturns a very brief description of this CursorTool.- Specified by:
getNamein interfaceCursorTool- Specified by:
getNamein interfaceShortcutsDescriptor- Overrides:
getNamein classAbstractCursorTool- Returns:
- the name of this CursorTool
-
mousePressed
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
-
getShape
-
describeShortcuts
- Specified by:
describeShortcutsin interfaceShortcutsDescriptor
-