Package com.reportmill.panels
Class CellTableTool
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.panels.Tool
- 
- com.reportmill.panels.CellTableTool
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class CellTableTool extends Tool This class provides support for UI editing of RMCellTable shapes.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
 
- 
 - 
Field Summary- 
Fields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
 
- 
 - 
Constructor SummaryConstructors Constructor Description CellTableTool()Creates a new CellTableTool.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMCellgetSelectedCell()Returns the selected cell.RMCellTablegetSelectedTable()Returns the selected table.java.lang.ClassgetShapeClass()Returns the shape class this tool edits (RMTable).RJPanelgetUI()Returns the Swing UI panel for this inspector.java.lang.StringgetWindowTitle()Returns the display name for this tool ("Table Inspector").voidmouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)Handle cell table mouse dragged.voidmouseMoved(RMShape aShape, java.awt.event.MouseEvent anEvent)Event handling - overridden to set a custom cursor.voidmousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)Handles Shape MousePressed.voidmouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)Handle cell table mouse released.voidpaintTool(java.awt.Graphics2D g)Highlights the selected cells or dividers.voidprocessKeyEvent(RMShape aShape, java.awt.event.KeyEvent anEvent)Key event handler for crosstab editing.voidresetUI()Resets the Swing UI from current selected cell table.voidrespondUI(java.lang.Object anObj)Updates currently selected cell table from Swing UI.voidrunContextMenu(java.awt.event.MouseEvent anEvent)Runs a context menu for the given event.- 
Methods inherited from class com.reportmill.panels.ToolactivateTool, 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
 - 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Method Detail- 
getUIpublic RJPanel getUI() Returns the Swing UI panel for this inspector.
 - 
resetUIpublic void resetUI() Resets the Swing UI from current selected cell table.
 - 
respondUIpublic void respondUI(java.lang.Object anObj) Updates currently selected cell table from Swing UI.
 - 
mouseMovedpublic void mouseMoved(RMShape aShape, java.awt.event.MouseEvent anEvent) Event handling - overridden to set a custom cursor.- Overrides:
- mouseMovedin class- Tool
 
 - 
mousePressedpublic void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent) Handles Shape MousePressed.- Overrides:
- mousePressedin class- Tool
 
 - 
mouseDraggedpublic void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent) Handle cell table mouse dragged.- Overrides:
- mouseDraggedin class- Tool
 
 - 
mouseReleasedpublic void mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent) Handle cell table mouse released.- Overrides:
- mouseReleasedin class- Tool
 
 - 
processKeyEventpublic void processKeyEvent(RMShape aShape, java.awt.event.KeyEvent anEvent) Key event handler for crosstab editing.- Overrides:
- processKeyEventin class- Tool
 
 - 
runContextMenupublic void runContextMenu(java.awt.event.MouseEvent anEvent) Runs a context menu for the given event.
 - 
paintToolpublic void paintTool(java.awt.Graphics2D g) Highlights the selected cells or dividers.
 - 
getSelectedTablepublic RMCellTable getSelectedTable() Returns the selected table.
 - 
getSelectedCellpublic RMCell getSelectedCell() Returns the selected cell.
 - 
getShapeClasspublic java.lang.Class getShapeClass() Returns the shape class this tool edits (RMTable).- Overrides:
- getShapeClassin class- Tool
 
 - 
getWindowTitlepublic java.lang.String getWindowTitle() Returns the display name for this tool ("Table Inspector").- Overrides:
- getWindowTitlein class- Tool
 
 
- 
 
-