Package com.reportmill.panels
Class RectangleTool
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.panels.Tool
com.reportmill.panels.RectangleTool
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
This class handles editing of rectangle shapes.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
- 
Field SummaryFields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the class that this tool is responsible for.getUI()Returns the Swing UI panel.Returns the name to be presented to user.voidmouseMoved(MouseEvent anEvent) Event handling - overridden to install crosshair cursor.Returns a new instance of the shape class that this tool is responsible for.voidresetUI()Updates the Swing UI controls from the currently selected rectangle.voidUpdates the currently selected rectangle from the Swing UI controls.Methods inherited from class com.reportmill.panels.ToolactivateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandleCount, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseDragged, mouseMoved, mousePressed, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, moveShapeHandle, paintSelectedShape, paintSuperSelectedShape, paintTool, processKeyEvent, reactivateTool, willLoseSuperSelectionInEditorMethods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
RectangleToolpublic RectangleTool()
 
- 
- 
Method Details- 
newInstanceReturns a new instance of the shape class that this tool is responsible for.- Overrides:
- newInstancein class- Tool
 
- 
getUIReturns the Swing UI panel.
- 
resetUIpublic void resetUI()Updates the Swing UI controls from the currently selected rectangle.
- 
respondUIUpdates the currently selected rectangle from the Swing UI controls.
- 
mouseMovedEvent handling - overridden to install crosshair cursor.- Overrides:
- mouseMovedin class- Tool
 
- 
getShapeClassReturns the class that this tool is responsible for.- Overrides:
- getShapeClassin class- Tool
 
- 
getWindowTitleReturns the name to be presented to user.- Overrides:
- getWindowTitlein class- Tool
 
 
-