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
,java.lang.Cloneable
public class CellTool extends TextTool
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 Constructor Description CellTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHandleCount(RMShape aShape)
Overrides tool method to indicate that cells have no handles.javax.swing.ImageIcon
getImageIcon()
Returns the image icon for bar labels (uses SwitchShapeTool icon).void
mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.void
mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.void
mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handling - overrides text to in case cell tool needs to forward events to table tool.void
paintTool(java.awt.Graphics2D g)
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
-
-
-
-
Method Detail
-
mousePressed
public void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
mousePressed
in classTextTool
-
mouseDragged
public void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
mouseDragged
in classTextTool
-
mouseReleased
public void mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handling - overrides text to in case cell tool needs to forward events to table tool.- Overrides:
mouseReleased
in classTextTool
-
getHandleCount
public int getHandleCount(RMShape aShape)
Overrides tool method to indicate that cells have no handles.- Overrides:
getHandleCount
in classTextTool
-
paintTool
public void paintTool(java.awt.Graphics2D g)
Highlights the selected cells or dividers.
-
getImageIcon
public javax.swing.ImageIcon getImageIcon()
Returns the image icon for bar labels (uses SwitchShapeTool icon).- Overrides:
getImageIcon
in classTool
-
-