public class CellTableTool extends Tool
Tool.RMShapeHandleHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth| Constructor and Description |
|---|
CellTableTool()
Creates a new CellTableTool.
|
| Modifier and Type | Method and Description |
|---|---|
RMCell |
getSelectedCell()
Returns the selected cell.
|
RMCellTable |
getSelectedTable()
Returns the selected table.
|
java.lang.Class |
getShapeClass()
Returns the shape class this tool edits (RMTable).
|
RJPanel |
getUI()
Returns the Swing UI panel for this inspector.
|
java.lang.String |
getWindowTitle()
Returns the display name for this tool ("Table Inspector").
|
void |
mouseDragged(RMShape aShape,
java.awt.event.MouseEvent anEvent)
Handle cell table mouse dragged.
|
void |
mouseMoved(RMShape aShape,
java.awt.event.MouseEvent anEvent)
Event handling - overridden to set a custom cursor.
|
void |
mousePressed(RMShape aShape,
java.awt.event.MouseEvent anEvent)
Handles Shape MousePressed.
|
void |
mouseReleased(RMShape aShape,
java.awt.event.MouseEvent anEvent)
Handle cell table mouse released.
|
void |
paintTool(java.awt.Graphics2D g)
Highlights the selected cells or dividers.
|
void |
processKeyEvent(RMShape aShape,
java.awt.event.KeyEvent anEvent)
Key event handler for crosstab editing.
|
void |
resetUI()
Resets the Swing UI from current selected cell table.
|
void |
respondUI(java.lang.Object anObj)
Updates currently selected cell table from Swing UI.
|
void |
runContextMenu(java.awt.event.MouseEvent anEvent)
Runs a context menu for the given event.
|
activateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandleCount, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, reactivateTool, willLoseSuperSelectionInEditorclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEqualspublic RJPanel getUI()
public void resetUI()
public void respondUI(java.lang.Object anObj)
public void mouseMoved(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseMoved in class Toolpublic void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
mousePressed in class Toolpublic void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseDragged in class Toolpublic void mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseReleased in class Toolpublic void processKeyEvent(RMShape aShape, java.awt.event.KeyEvent anEvent)
processKeyEvent in class Toolpublic void runContextMenu(java.awt.event.MouseEvent anEvent)
public void paintTool(java.awt.Graphics2D g)
public RMCellTable getSelectedTable()
public RMCell getSelectedCell()
public java.lang.Class getShapeClass()
getShapeClass in class Toolpublic java.lang.String getWindowTitle()
getWindowTitle in class Tool