Class RBTool

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable
Direct Known Subclasses:
JProgressBarTool, JScrollPaneTool, JSeparatorTool, JSliderTool, JSpinnerTool, JSplitPaneTool, JTabbedPaneTool, JTableTool, JTreeTool, RBDocumentTool, RBPageTool, RJColorDockTool, RJColorWellTool, RJCustomViewTool, RJMenuButtonTool, RJPanelTool, RJSwitchPaneTool, RJTextTool, RJThumbWheelTool

public class RBTool extends Tool
The base tool class for ribs tool.
  • Constructor Details

    • RBTool

      public RBTool()
  • Method Details

    • getToolRB

      public static RBTool getToolRB(RMShape aShape)
      Returns the specific tool for a given shape.
    • getHandleCount

      public int getHandleCount(RMShape aShape)
      Returns the number of handles for this shape.
      Overrides:
      getHandleCount in class Tool
    • BuildShapesFromComponents

      public static RJShape BuildShapesFromComponents(JComponent aComponent, RMShape aParentShape)
      Creates the appropriate RJShape for given RJComponent and adds it to given shape.
    • buildShapesFromComponents

      public void buildShapesFromComponents(JComponent aComponent, RJShape aShape, RMShape aParentShape)
      Creates the appropriate RJShape for given RJComponent and adds it to given shape.
    • SyncComponentsFromShapes

      public static void SyncComponentsFromShapes(RBDocument aDocument)
      Synchronizes shape/component heirarchy for given document.
    • syncComponentsFromShapes

      public void syncComponentsFromShapes(RMShape aShape)
      Synchronizes component heirarchy from shape heirarchy (shapes may have been added, removed, reordered).
    • getComponentPacked

      public static JComponent getComponentPacked(JComponent aComponent)
      Returns a copy of the given component appropriately layed out.