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 TypeMethodDescriptionint
getHandleCount
(RMShape aShape) Overrides tool method to indicate that cells have no handles.Returns the image icon for bar labels (uses SwitchShapeTool icon).void
mouseDragged
(RMShape aShape, MouseEvent anEvent) Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.void
mousePressed
(RMShape aShape, MouseEvent anEvent) Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.void
mouseReleased
(RMShape aShape, MouseEvent anEvent) Event handling - overrides text to in case cell tool needs to forward events to table tool.void
Highlights 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, willLoseSuperSelectionInEditor
Methods 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, reactivateTool
Methods 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:
mousePressed
in classTextTool
-
mouseDragged
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
mouseDragged
in classTextTool
-
mouseReleased
Event handling - overrides text to in case cell tool needs to forward events to table tool.- Overrides:
mouseReleased
in classTextTool
-
getHandleCount
Overrides tool method to indicate that cells have no handles.- Overrides:
getHandleCount
in classTextTool
-
paintTool
Highlights the selected cells or dividers. -
getImageIcon
Returns the image icon for bar labels (uses SwitchShapeTool icon).- Overrides:
getImageIcon
in classTool
-