Class CellTableTool

  • All Implemented Interfaces:
    RMArchiver.Archiving, java.lang.Cloneable

    public class CellTableTool
    extends Tool
    This class provides support for UI editing of RMCellTable shapes.
    • Constructor Detail

      • CellTableTool

        public CellTableTool()
        Creates a new CellTableTool.
    • Method Detail

      • getUI

        public RJPanel getUI()
        Returns the Swing UI panel for this inspector.
        Overrides:
        getUI in class Tool
      • resetUI

        public void resetUI()
        Resets the Swing UI from current selected cell table.
        Overrides:
        resetUI in class Tool
      • respondUI

        public void respondUI​(java.lang.Object anObj)
        Updates currently selected cell table from Swing UI.
        Overrides:
        respondUI in class Tool
      • mouseMoved

        public void mouseMoved​(RMShape aShape,
                               java.awt.event.MouseEvent anEvent)
        Event handling - overridden to set a custom cursor.
        Overrides:
        mouseMoved in class Tool
      • mousePressed

        public void mousePressed​(RMShape aShape,
                                 java.awt.event.MouseEvent anEvent)
        Handles Shape MousePressed.
        Overrides:
        mousePressed in class Tool
      • mouseDragged

        public void mouseDragged​(RMShape aShape,
                                 java.awt.event.MouseEvent anEvent)
        Handle cell table mouse dragged.
        Overrides:
        mouseDragged in class Tool
      • mouseReleased

        public void mouseReleased​(RMShape aShape,
                                  java.awt.event.MouseEvent anEvent)
        Handle cell table mouse released.
        Overrides:
        mouseReleased in class Tool
      • processKeyEvent

        public void processKeyEvent​(RMShape aShape,
                                    java.awt.event.KeyEvent anEvent)
        Key event handler for crosstab editing.
        Overrides:
        processKeyEvent in class Tool
      • runContextMenu

        public void runContextMenu​(java.awt.event.MouseEvent anEvent)
        Runs a context menu for the given event.
      • paintTool

        public void paintTool​(java.awt.Graphics2D g)
        Highlights the selected cells or dividers.
        Overrides:
        paintTool in class Tool
      • getSelectedTable

        public RMCellTable getSelectedTable()
        Returns the selected table.
      • getSelectedCell

        public RMCell getSelectedCell()
        Returns the selected cell.
      • getShapeClass

        public java.lang.Class getShapeClass()
        Returns the shape class this tool edits (RMTable).
        Overrides:
        getShapeClass in class Tool
      • getWindowTitle

        public java.lang.String getWindowTitle()
        Returns the display name for this tool ("Table Inspector").
        Overrides:
        getWindowTitle in class Tool