Class JScrollPaneTool

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

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

    • JScrollPaneTool

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

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

      public void buildShapesFromComponents(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