public class CellTool extends TextTool
Tool.RMShapeHandle
HandleMaxXMaxY, 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, willLoseSuperSelectionInEditor
deactivateTool, editor, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isSelected, isSuperSelected, mouseMoved, moveShapeHandle, newInstance, processKeyEvent, reactivateTool
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
mousePressed
in class TextTool
public void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseDragged
in class TextTool
public void mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseReleased
in class TextTool
public int getHandleCount(RMShape aShape)
getHandleCount
in class TextTool
public void paintTool(java.awt.Graphics2D g)
public javax.swing.ImageIcon getImageIcon()
getImageIcon
in class Tool