public class CellTableTool extends Tool
Tool.RMShapeHandle
HandleMaxXMaxY, 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, willLoseSuperSelectionInEditor
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public 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 Tool
public void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
mousePressed
in class Tool
public void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseDragged
in class Tool
public void mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseReleased
in class Tool
public void processKeyEvent(RMShape aShape, java.awt.event.KeyEvent anEvent)
processKeyEvent
in class Tool
public 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 Tool
public java.lang.String getWindowTitle()
getWindowTitle
in class Tool