Package com.reportmill.panels
Class CellTool
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.panels.Tool
com.reportmill.panels.TextTool
com.reportmill.panels.CellTool
- All Implemented Interfaces:
RMArchiver.Archiving,Cloneable
Provides Swing UI editing for RMCell shapes.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.reportmill.panels.Tool
Tool.RMShapeHandle -
Field Summary
Fields inherited from class com.reportmill.panels.Tool
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetHandleCount(RMShape aShape) Overrides tool method to indicate that cells have no handles.Returns the image icon for bar labels (uses SwitchShapeTool icon).voidmouseDragged(RMShape aShape, MouseEvent anEvent) Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.voidmousePressed(RMShape aShape, MouseEvent anEvent) Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.voidmouseReleased(RMShape aShape, MouseEvent anEvent) Event handling - overrides text to in case cell tool needs to forward events to table tool.voidHighlights the selected cells or dividers.Methods inherited from class com.reportmill.panels.TextTool
activateTool, convertToText, didBecomeSuperSelectedShapeInEditor, flushChanges, getHandleRect, getShapeClass, getUI, getWindowTitle, isInstance, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, paintSelectedShape, paintSuperSelectedShape, paintTextLinkIndicator, resetUI, respondUI, willLoseSuperSelectionInEditorMethods inherited from class com.reportmill.panels.Tool
deactivateTool, editor, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isSelected, isSuperSelected, mouseMoved, moveShapeHandle, newInstance, processKeyEvent, reactivateToolMethods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Constructor Details
-
CellTool
public CellTool()
-
-
Method Details
-
mousePressed
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
mousePressedin classTextTool
-
mouseDragged
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
mouseDraggedin classTextTool
-
mouseReleased
Event handling - overrides text to in case cell tool needs to forward events to table tool.- Overrides:
mouseReleasedin classTextTool
-
getHandleCount
Overrides tool method to indicate that cells have no handles.- Overrides:
getHandleCountin classTextTool
-
paintTool
Highlights the selected cells or dividers. -
getImageIcon
Returns the image icon for bar labels (uses SwitchShapeTool icon).- Overrides:
getImageIconin classTool
-