Class CellTableTool

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

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

    • CellTableTool

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

    • 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(Object anObj)
      Updates currently selected cell table from Swing UI.
      Overrides:
      respondUI in class Tool
    • mouseMoved

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

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

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

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

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

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

      public void paintTool(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 Class getShapeClass()
      Returns the shape class this tool edits (RMTable).
      Overrides:
      getShapeClass in class Tool
    • getWindowTitle

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