Class RBPageTool

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

    public class RBPageTool
    extends RBTool
    Provides for Swing UI editing of RBPage properties.
    • Constructor Detail

      • RBPageTool

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

      • getUI

        public RJPanel getUI()
        Returns the Swing GUI for this tool.
        Overrides:
        getUI in class Tool
      • resetUI

        public void resetUI()
        Updates the Swing UI for this tool from the currently selected RBPage.
        Overrides:
        resetUI in class Tool
      • respondUI

        public void respondUI​(java.lang.Object anObj)
        Propagates changes from the Swing UI controls to the currently selected RBPage.
        Overrides:
        respondUI in class Tool
      • getHandleCount

        public int getHandleCount​(RMShape aShape)
        Overrides tool method to declare that pages have no handles.
        Overrides:
        getHandleCount in class RBTool
      • getShapeClass

        public java.lang.Class getShapeClass()
        Returns the class that this tool is responsible for.
        Overrides:
        getShapeClass in class Tool
      • getWindowTitle

        public java.lang.String getWindowTitle()
        Returns the name used to represent this tool in the inspector window title.
        Overrides:
        getWindowTitle in class Tool
      • getImageIcon

        public javax.swing.ImageIcon getImageIcon()
        Returns the icon to be used to represent this tool in the inspector window selection path.
        Overrides:
        getImageIcon in class Tool
      • syncComponentsFromShapes

        public void syncComponentsFromShapes​(RMShape aShape)
        Synchronizes component heirarchy from shape heirarchy (shapes may have been added, removed, reordered).
        Overrides:
        syncComponentsFromShapes in class RBTool