jbcl.layout Package
java.lang.Object +----com.borland.jbcl.layout.PaneLayout
Constructors Properties Methods
Implements LayoutManager, LayoutManager2, Serializable
The PaneLayout
class is designed for use with the
SplitPanel
component and has
limited general use. PaneLayout
allows you specify the size and position of a component
in relation to its sibling components.
JBuilder's SplitPanel
container automatically has a default layout of PaneLayout
.
SplitPanel
allows you to populate a container with multiple components which have movable
splitter bars between them, letting the user change the
PaneConstraints
of the components
at runtime.
PaneLayout
applied to a panel or frame other than a SplitPanel
lets you
control the percentage of the container the components will have relative to each other, but
does not create moveable splitter bars between the panes.
For more detailed information on using PaneLayout
and the PaneConstraints
object, see the PaneLayout topic and
PaneLayout constraints property editor
in the online F1 Help topics.
public PaneLayout()Creates a
PaneLayout
layout manager.
public Rectangle getDividerBounds()Read-only property that returns the rectangle that the divider can be moved in. This method is specific to a
SplitPanel
.
public int getGap() public void setGap(int gap)Stores the gap size. The gap is the number of pixels that surrounds each component. The actual size of a divider is twice this number. The default is 0.
The SplitPanel
uses this area to allow the user to change the relative sizes of the components by clicking and dragging on this area.
public void dragDivider(int x, int y)Moves the divider the amount specified. One parameter must be zero.
This method is specific to a SplitPanel
.
public String[] getAddOrder(Container parent)Returns an array of the components in an order that will work. This method is called by the UI Designer after components have been moved or deleted.
public PaneConstraints getConstraints(Component comp)Returns the
PaneConstraints
for the specified component.
public Rectangle getDividerRect(int x, int y)Determines which divider contains the supplied point and returns that divider's rectangle.
This method is specific to a SplitPanel
.
public void setConstraints(Component child, PaneConstraints constraints)Sets the
PaneConstraints
for the specified component. The components are not redrawn until layoutContainer
is called.
public String toString()Returns "PaneLayout".
Overrides: java.lang.Object.toString()