All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.SplitLayout

java.lang.Object
   |
   +----com.bulletproof.gui.SplitLayout

public class SplitLayout
extends Object
implements LayoutManager
Class SplitLayout represents layout manager for laying out on a split screen where the position of the split can be adjusted.


Constructor Index

 o SplitLayout()
Constructs a new SplitLayout.
 o SplitLayout(int, int)
Constructs a SplitLayout with the specified gaps.

Method Index

 o addLayoutComponent(String, Component)
Adds the specified named component to the layout.
 o getLeftPercentage()
Get the percentage that the left side of the panel occupies.
 o getTopPercentage()
Get the percentage that the top half of the panel occupies.
 o layoutContainer(Container)
Lays out the specified container.
 o minimumLayoutSize(Container)
Returns the minimum dimensions needed to layout the components contained in the specified target container.
 o moveXdivider(Container, int)
Move x divider to the requested position.
 o moveYdivider(Container, int)
Move y divider to the requested position.
 o removeLayoutComponent(Component)
Removes the specified component from the layout.
 o setLeftPercentage(float)
Set the percentage that the left side of the panel occupies.
 o setTopPercentage(float)
Set the percentage that the top half of the panel occupies.

Constructors

 o SplitLayout
 public SplitLayout()
Constructs a new SplitLayout.

 o SplitLayout
 public SplitLayout(int hgap,
                    int vgap)
Constructs a SplitLayout with the specified gaps.

Parameters:
hgap - the horizontal gap
vgap - the vertical gap

Methods

 o setLeftPercentage
 public void setLeftPercentage(float percent)
Set the percentage that the left side of the panel occupies.

Parameters:
percent - the percentage that the left side of the panel occupies.
 o setTopPercentage
 public void setTopPercentage(float percent)
Set the percentage that the top half of the panel occupies.

Parameters:
percent - the percentage that the top half of the panel occupies.
 o getLeftPercentage
 public float getLeftPercentage()
Get the percentage that the left side of the panel occupies.

Returns:
percent the percentage that the left side of the panel occupies.
 o getTopPercentage
 public float getTopPercentage()
Get the percentage that the top half of the panel occupies.

Returns:
percent the percentage that the top half of the panel occupies.
 o moveXdivider
 public void moveXdivider(Container parent,
                          int xpos)
Move x divider to the requested position.

Parameters:
parent - the name of the parent container
xpos - the position to move it to in the xplane.
 o moveYdivider
 public void moveYdivider(Container parent,
                          int ypos)
Move y divider to the requested position.

Parameters:
parent - the name of the parent container
ypos - the position to move it to in the yplane.
 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component comp)
Adds the specified named component to the layout.

Parameters:
name - the String name
comp - the component to be added
 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
Removes the specified component from the layout.

Parameters:
comp - the component to be removed
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container.

Parameters:
target - the Container on which to do the layout
See Also:
Container
 o layoutContainer
 public void layoutContainer(Container target)
Lays out the specified container. This method will actually reshape the components in the specified target container in order to satisfy the constraints of the BorderLayout object.

Parameters:
target - the component being laid out
See Also:
Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index