Class CellTool

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class CellTool extends TextTool
Provides Swing UI editing for RMCell shapes.
  • Constructor Details

    • CellTool

      public CellTool()
  • Method Details

    • mousePressed

      public void mousePressed(RMShape aShape, MouseEvent anEvent)
      Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.
      Overrides:
      mousePressed in class TextTool
    • mouseDragged

      public void mouseDragged(RMShape aShape, MouseEvent anEvent)
      Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.
      Overrides:
      mouseDragged in class TextTool
    • mouseReleased

      public void mouseReleased(RMShape aShape, MouseEvent anEvent)
      Event handling - overrides text to in case cell tool needs to forward events to table tool.
      Overrides:
      mouseReleased in class TextTool
    • getHandleCount

      public int getHandleCount(RMShape aShape)
      Overrides tool method to indicate that cells have no handles.
      Overrides:
      getHandleCount in class TextTool
    • paintTool

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

      public ImageIcon getImageIcon()
      Returns the image icon for bar labels (uses SwitchShapeTool icon).
      Overrides:
      getImageIcon in class Tool