public class SelectTool extends Tool
Tool.RMShapeHandle
Modifier and Type | Field and Description |
---|---|
static byte |
DragModeEventDispatch |
static byte |
DragModeMove |
static byte |
DragModeNone |
static byte |
DragModeResize |
static byte |
DragModeSelect |
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
Constructor and Description |
---|
SelectTool()
Creates a new select tool.
|
Modifier and Type | Method and Description |
---|---|
int |
getDragMode()
Returns the last drag mode handled by the select tool.
|
boolean |
getRedoMousePressed()
Returns whether select tool should redo current mouse down.
|
RJPanel |
getUI()
Returns the Swing UI for the current selected shape(s).
|
void |
mouseDragged(java.awt.event.MouseEvent anEvent)
Handles mouse dragged for the select tool.
|
void |
mouseMoved(java.awt.event.MouseEvent anEvent)
Handles mouse moved - forward on to super selected shape tool.
|
void |
mousePressed(java.awt.event.MouseEvent anEvent)
Handles mouse pressed for the select tool.
|
void |
mouseReleased(java.awt.event.MouseEvent anEvent)
Handles mouse released for the select tool.
|
void |
paintTool(java.awt.Graphics2D g)
Paints tool specific things, like handles.
|
void |
reactivateTool()
Tool callback selects parent of selected shapes (or just shape, if it's super-selected).
|
void |
resetUI()
Called to reset the Swing GUI for the currently selected shape.
|
void |
setRedoMousePressed(boolean aFlag)
Sets whether select tool should redo current mouse dwon.
|
activateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandleCount, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeClass, getShapeHandleAtPoint, getTool, getTool, getWindowTitle, isInstance, isSelected, isSuperSelected, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, processKeyEvent, respondUI, willLoseSuperSelectionInEditor
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public static final byte DragModeNone
public static final byte DragModeMove
public static final byte DragModeResize
public static final byte DragModeSelect
public static final byte DragModeEventDispatch
public void mouseMoved(java.awt.event.MouseEvent anEvent)
mouseMoved
in class Tool
public void mousePressed(java.awt.event.MouseEvent anEvent)
mousePressed
in class Tool
public void mouseDragged(java.awt.event.MouseEvent anEvent)
mouseDragged
in class Tool
public void mouseReleased(java.awt.event.MouseEvent anEvent)
mouseReleased
in class Tool
public RJPanel getUI()
public void resetUI()
public int getDragMode()
public boolean getRedoMousePressed()
public void setRedoMousePressed(boolean aFlag)
public void paintTool(java.awt.Graphics2D g)
public void reactivateTool()
reactivateTool
in class Tool