Class CellTool

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

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

      • CellTool

        public CellTool()
    • Method Detail

      • mousePressed

        public void mousePressed​(RMShape aShape,
                                 java.awt.event.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,
                                 java.awt.event.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,
                                  java.awt.event.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​(java.awt.Graphics2D g)
        Highlights the selected cells or dividers.
        Overrides:
        paintTool in class Tool
      • getImageIcon

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