Class DocumentTool

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

    public class DocumentTool
    extends Tool
    This class provides UI for configuring an RMDocument.
    • Constructor Detail

      • DocumentTool

        public DocumentTool()
    • Method Detail

      • getShapeClass

        public java.lang.Class getShapeClass()
        Returns the class that tool edits.
        Overrides:
        getShapeClass in class Tool
      • getWindowTitle

        public java.lang.String getWindowTitle()
        Returns the name to be show in inspector window.
        Overrides:
        getWindowTitle in class Tool
      • getUI

        public RJPanel getUI()
        Returns the Swing UI for inspector window.
        Overrides:
        getUI in class Tool
      • resetUI

        public void resetUI()
        Resets the Swing controls in the UI from the current document.
        Overrides:
        resetUI in class Tool
      • respondUI

        public void respondUI​(java.lang.Object anObj)
        Responds to Swing controls in UI to update current document.
        Overrides:
        respondUI in class Tool
      • getHandleCount

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