Class JSplitPaneTool<T extends JSplitPaneShape>

    • Constructor Detail

      • JSplitPaneTool

        public JSplitPaneTool()
    • Method Detail

      • 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 javax.swing.JComponent getComponentPacked​(javax.swing.JComponent aComponent)
        Returns a copy of the given component appropriately laid out.
      • buildSplitpaneWithChildren

        public static javax.swing.JSplitPane buildSplitpaneWithChildren​(javax.swing.JComponent c1,
                                                                        javax.swing.JComponent c2,
                                                                        int splitways)
      • paintShapeHandles

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