Class ScaleSelectedItemsTool
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.DragTool
-
- org.openjump.core.ui.plugin.edittoolbox.cursortools.ScaleSelectedItemsTool
-
- All Implemented Interfaces:
CursorTool,ShortcutsDescriptor,MouseListener,MouseMotionListener,EventListener
public class ScaleSelectedItemsTool 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 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 ScaleSelectedItemsTool(WorkbenchContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(LayerViewPanel panel)voiddeactivate(MouseEvent e)Map<QuasimodeTool.ModifierKeySpec,String>describeShortcuts()protected voidgestureFinished()IcongetIcon()StringgetName()Returns a very brief description of this CursorTool.protected ShapegetShape()changed to show bounding box or geometriesvoidmouseDragged(MouseEvent e)voidmouseMoved(MouseEvent e)voidmousePressed(MouseEvent e)Begins handling of the drag.protected voidsetMousePos(org.locationtech.jts.geom.Coordinate destination)-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
deactivate, getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, 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, getCursor, 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
-
ScaleSelectedItemsTool
public ScaleSelectedItemsTool(WorkbenchContext context)
-
-
Method Detail
-
gestureFinished
protected void gestureFinished() throws Exception- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
getIcon
public Icon getIcon()
- Specified by:
getIconin interfaceCursorTool- Returns:
- null to use a default icon
-
getName
public String 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
-
activate
public void activate(LayerViewPanel panel)
- Specified by:
activatein interfaceCursorTool- Overrides:
activatein classAbstractCursorTool
-
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
-
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classDragTool
-
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classAbstractCursorTool
-
getShape
protected Shape getShape()
changed to show bounding box or geometries
-
deactivate
public void deactivate(MouseEvent e)
-
setMousePos
protected void setMousePos(org.locationtech.jts.geom.Coordinate destination)
-
describeShortcuts
public Map<QuasimodeTool.ModifierKeySpec,String> describeShortcuts()
- Specified by:
describeShortcutsin interfaceShortcutsDescriptor
-
-