borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.layout 

PaneLayout component

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

About the PaneLayout component

Constructors  Properties  Methods  

Implements LayoutManager, LayoutManager2

The PaneLayout class is designed for use with the SplitPanel component and has limited general use.


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()

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 paramter 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()

Overrides: java.lang.Object.toString()