Class JSplitPaneShape

All Implemented Interfaces:
RMArchiver.Archiving, RMShapePainter.Paint, RJMinMaxSizeSettable, Cloneable

public class JSplitPaneShape extends RJShape
Provides Ribs representation for viewing and editing JSplitPanes.
  • Constructor Details

    • JSplitPaneShape

      public JSplitPaneShape()
      Creates a new splitpane shape.
    • JSplitPaneShape

      public JSplitPaneShape(JComponent aComponent)
      Creates a new splitpane shape.
  • Method Details

    • getSplitPane

      public JSplitPane getSplitPane()
      Returns the splitpane shape's splitpane.
    • superSelectable

      public boolean superSelectable()
      Overrides default implementation to indicate that this shape can be super selected.
      Overrides:
      superSelectable in class RMShape
    • childrenSuperSelectImmediately

      public boolean childrenSuperSelectImmediately()
      Overrides default implementation to indicate children should super select immediately.
      Overrides:
      childrenSuperSelectImmediately in class RMShape
    • paintImage

      public void paintImage(Graphics2D g)
      Overrides default implementation to do brute force painting.
      Overrides:
      paintImage in class RJShape
    • getTopShape

      public RJShape getTopShape()
      Specific methods to return each child as the Tool created them
    • getBottomShape

      public RJShape getBottomShape()
    • getLeftShape

      public RJShape getLeftShape()
    • getRightShape

      public RJShape getRightShape()
    • getOrientation

      public int getOrientation()
      returns one of the JSplitPane constants HORIZONTAL_SPLIT or VERTICAL_SPLIT
    • setHeightDeep

      public void setHeightDeep(float h, boolean constrain)
      Sizing methods to handle three child components appropriately
      Overrides:
      setHeightDeep in class RMShape
    • setWidthDeep

      public void setWidthDeep(float w, boolean constrain)
      Description copied from class: RMShape
      Sets the width of this shape and its children (proportionally using their autosizing).
      Overrides:
      setWidthDeep in class RMShape
    • setDividerLocation

      public void setDividerLocation(int loc)
      Set the dividerLocation of the Component and resize children
    • setHorizontalDividerLocation

      public void setHorizontalDividerLocation(int loc)
      Set the dividerLocation of a horizontal splitpane and resize children
    • setVerticalDividerLocation

      public void setVerticalDividerLocation(int loc)
      Set the dividerLocation of a horizontal splitpane and resize children