Class JSplitPaneTool<T extends JSplitPaneShape>


public class JSplitPaneTool<T extends JSplitPaneShape> extends JComponentTool<T>
A Ribs app tool for JSplitPanes.
  • Constructor Details

    • JSplitPaneTool

      public JSplitPaneTool()
  • Method Details

    • getShapeClass

      public Class getShapeClass()
      Returns the class that this tool is responsible for.
      Overrides:
      getShapeClass in class RMParentShapeTool<T extends JSplitPaneShape>
    • getWindowTitle

      public String getWindowTitle()
      Returns the name to be used for this tool in inspector window title.
      Overrides:
      getWindowTitle in class RMParentShapeTool<T extends JSplitPaneShape>
    • groupInSplitpanes

      public static void groupInSplitpanes(RMEditor anEditor)
      Group multiple shapes into splitpanes. Splitpanes have only two children, so this routine recursively groups the list of shapes into a tree of splitpanes. 98% of the time it will probably be called with just 2 shapes, but we might as well cover all the cases. Also, every shape will go into its own pane. Selecting 10 random shapes & choosing "group in splitpane" is awfully ambiguous, so you get what you get - quit your bitching.
    • getComponentPacked

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

      public static JSplitPane buildSplitpaneWithChildren(JComponent c1, JComponent c2, int splitways)
    • paintShapeHandles

      public void paintShapeHandles(T aShape, Graphics2D g, boolean isSuperSelected)
      Draw some sort of indicator for super-selected splitpanes.
      Overrides:
      paintShapeHandles in class RMTool<T extends JSplitPaneShape>