public class CellTool extends TextTool
Tool.RMShapeHandleHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth| Constructor and Description |
|---|
CellTool() |
| Modifier and Type | Method and 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.
|
activateTool, convertToText, didBecomeSuperSelectedShapeInEditor, flushChanges, getHandleRect, getShapeClass, getUI, getWindowTitle, isInstance, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, paintSelectedShape, paintSuperSelectedShape, paintTextLinkIndicator, resetUI, respondUI, willLoseSuperSelectionInEditordeactivateTool, editor, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isSelected, isSuperSelected, mouseMoved, moveShapeHandle, newInstance, processKeyEvent, reactivateToolclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEqualspublic void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
mousePressed in class TextToolpublic void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseDragged in class TextToolpublic void mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseReleased in class TextToolpublic int getHandleCount(RMShape aShape)
getHandleCount in class TextToolpublic void paintTool(java.awt.Graphics2D g)
public javax.swing.ImageIcon getImageIcon()
getImageIcon in class Tool