Class RBTool

    • Constructor Detail

      • RBTool

        public RBTool()
    • Method Detail

      • 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​(javax.swing.JComponent aComponent,
                                                        RMShape aParentShape)
        Creates the appropriate RJShape for given RJComponent and adds it to given shape.
      • 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.
      • 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 javax.swing.JComponent getComponentPacked​(javax.swing.JComponent aComponent)
        Returns a copy of the given component appropriately layed out.