Class PageTool

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

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

    • PageTool

      public PageTool()
  • Method Details

    • 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(Object anObj)
      Updates the currently selected page from the Swing UI controls.
      Overrides:
      respondUI in class Tool
    • getShapeClass

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

      public 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.