Class JScrollPaneTool

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

    public class JScrollPaneTool
    extends RBTool
    An inner class to act as RJScrollPaneShape's Tool.
    • Constructor Detail

      • JScrollPaneTool

        public JScrollPaneTool()
        Creates a new scroll pane shape tool.
    • Method Detail

      • 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 string used in the inspector window title.
        Overrides:
        getWindowTitle in class Tool
      • getUI

        public RJPanel getUI()
        Returns the Swing UI panel (loading it the first time).
        Overrides:
        getUI in class Tool
      • resetUI

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

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

        public void buildShapesFromComponents​(javax.swing.JComponent aComponent,
                                              RJShape aShape,
                                              RMShape aParentShape)
        Creates the appropriate RJShape for given RJComponent and adds it to given shape.
        Overrides:
        buildShapesFromComponents in class RBTool
      • syncComponentsFromShapes

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