borland Packages  Class Hierarchy  jbcl.layout Package  Index 

PaneLayout component

java.lang.Object
   +----borland.jbcl.layout.PaneLayout

About the PaneLayout component

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.

Borland'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 topics PaneLayout in the online Building Applications with JBuilder and PaneLayout constraints property editor in the online F1 Help topics.


PaneLayout constructors

PaneLayout properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

PaneLayout methods

Methods implemented in this class

Methods implemented in java.lang.Object


PaneLayout constructors

PaneLayout()

  public PaneLayout()
Creates a PaneLayout layout manager.

PaneLayout properties

dividerBounds

 public Rectangle getDividerBounds()
Read-only property that returns the rectangle that the divider can be moved in. This method is specific to a SplitPanel.

gap

 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.


PaneLayout methods

dragDivider(int, int)

  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.

getAddOrder(java.awt.Container)

  public String[] getAddOrder(java.awt.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.

getConstraints(java.awt.Component)

  public PaneConstraints getConstraints(java.awt.Component comp)
Returns the PaneConstraints for the specified component.

getDividerRect(int, int)

  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.

setConstraints(java.awt.Component, borland.jbcl.layout.PaneConstraints)

  public void setConstraints(java.awt.Component child, borland.jbcl.layout.PaneConstraints constraints)
Sets the PaneConstraints for the specified component. The components are not redrawn until layoutContainer is called.

toString()

  public String toString()
Returns "PaneLayout".

Overrides: java.lang.Object.toString()