Class PageTool

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

    public class PageTool
    extends Tool
    This class provides GUI editing for RMPage shapes.
    • Constructor Detail

      • PageTool

        public PageTool()
    • Method Detail

      • getUI

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

        public void resetUI()
        Updates the Swing UI controls from the currently selected page.
        Overrides:
        resetUI in class Tool
      • respondUI

        public void respondUI​(java.lang.Object anObj)
        Updates the currently selected page from the Swing UI controls.
        Overrides:
        respondUI in class Tool
      • getShapeClass

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

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

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

        public void moveLayer​(int from,
                              int to)
        Moves the layer at the first layer index to the second given index.