Package com.reportmill.panels
Class SelectTool
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.panels.Tool
com.reportmill.panels.SelectTool
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
This class handles mouse selection and manipulation of shapes, including:
 - Click on a shape selects a shape
 - Double click on a shape super-selects a shape
 - Drag a rect selects shapes
 - Shift click or shift drag XORs selection
 - Click and drag handle resizes shape
- 
Nested Class SummaryNested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final byteFields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the last drag mode handled by the select tool.booleanReturns whether select tool should redo current mouse down.getUI()Returns the Swing UI for the current selected shape(s).voidmouseDragged(MouseEvent anEvent) Handles mouse dragged for the select tool.voidmouseMoved(MouseEvent anEvent) Handles mouse moved - forward on to super selected shape tool.voidmousePressed(MouseEvent anEvent) Handles mouse pressed for the select tool.voidmouseReleased(MouseEvent anEvent) Handles mouse released for the select tool.voidPaints tool specific things, like handles.voidTool callback selects parent of selected shapes (or just shape, if it's super-selected).voidresetUI()Called to reset the Swing GUI for the currently selected shape.voidsetRedoMousePressed(boolean aFlag) Sets whether select tool should redo current mouse dwon.Methods inherited from class com.reportmill.panels.ToolactivateTool, 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, willLoseSuperSelectionInEditorMethods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Field Details- 
DragModeNonepublic static final byte DragModeNone- See Also:
 
- 
DragModeMovepublic static final byte DragModeMove- See Also:
 
- 
DragModeResizepublic static final byte DragModeResize- See Also:
 
- 
DragModeSelectpublic static final byte DragModeSelect- See Also:
 
- 
DragModeEventDispatchpublic static final byte DragModeEventDispatch- See Also:
 
 
- 
- 
Constructor Details- 
SelectToolpublic SelectTool()Creates a new select tool.
 
- 
- 
Method Details- 
mouseMovedHandles mouse moved - forward on to super selected shape tool.- Overrides:
- mouseMovedin class- Tool
 
- 
mousePressedHandles mouse pressed for the select tool.- Overrides:
- mousePressedin class- Tool
 
- 
mouseDraggedHandles mouse dragged for the select tool.- Overrides:
- mouseDraggedin class- Tool
 
- 
mouseReleasedHandles mouse released for the select tool.- Overrides:
- mouseReleasedin class- Tool
 
- 
getUIReturns the Swing UI for the current selected shape(s).
- 
resetUIpublic void resetUI()Called to reset the Swing GUI for the currently selected shape.
- 
getDragModepublic int getDragMode()Returns the last drag mode handled by the select tool.
- 
getRedoMousePressedpublic boolean getRedoMousePressed()Returns whether select tool should redo current mouse down.
- 
setRedoMousePressedpublic void setRedoMousePressed(boolean aFlag) Sets whether select tool should redo current mouse dwon.
- 
paintToolPaints tool specific things, like handles.
- 
reactivateToolpublic void reactivateTool()Tool callback selects parent of selected shapes (or just shape, if it's super-selected).- Overrides:
- reactivateToolin class- Tool
 
 
-