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
public class RotateSelectedItemTool extends DragTool implements ShortcutsDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
clockwise
protected static org.locationtech.jts.geom.GeometryFactory
geomFac
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
isLinuxOS, panel
-
-
Constructor Summary
Constructors Constructor Description RotateSelectedItemTool(WorkbenchContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(LayerViewPanel layerViewPanel)
void
deactivate()
Map
describeShortcuts()
protected void
gestureFinished()
Cursor
getCursor()
Icon
getIcon()
String
getName()
Returns a very brief description of this CursorTool.protected Shape
getShape()
void
mouseMoved(MouseEvent e)
void
mousePressed(MouseEvent e)
Begins handling of the drag.-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mouseReleased, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClick
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.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
-
-
-
-
Constructor Detail
-
RotateSelectedItemTool
public RotateSelectedItemTool(WorkbenchContext context)
-
-
Method Detail
-
activate
public void activate(LayerViewPanel layerViewPanel)
- Specified by:
activate
in interfaceCursorTool
- Overrides:
activate
in classAbstractCursorTool
-
deactivate
public void deactivate()
- Specified by:
deactivate
in interfaceCursorTool
- Overrides:
deactivate
in classDragTool
-
gestureFinished
protected void gestureFinished() throws Exception
- Specified by:
gestureFinished
in classAbstractCursorTool
- Throws:
Exception
-
getCursor
public Cursor getCursor()
- Specified by:
getCursor
in interfaceCursorTool
- Overrides:
getCursor
in classAbstractCursorTool
-
getIcon
public Icon getIcon()
- Specified by:
getIcon
in interfaceCursorTool
- Returns:
- null to use a default icon
-
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classAbstractCursorTool
-
getName
public String getName()
Description copied from interface:CursorTool
Returns a very brief description of this CursorTool.- Specified by:
getName
in interfaceCursorTool
- Specified by:
getName
in interfaceShortcutsDescriptor
- Overrides:
getName
in classAbstractCursorTool
- Returns:
- the name of this CursorTool
-
mousePressed
public void mousePressed(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 interfaceMouseListener
- Overrides:
mousePressed
in classDragTool
-
describeShortcuts
public final Map describeShortcuts()
- Specified by:
describeShortcuts
in interfaceShortcutsDescriptor
-
-