All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.FlowLayout

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

public class FlowLayout
extends Object
implements LayoutManager
Flow layout is used to layout buttons in a panel. It will arrange buttons left to right until no more buttons fit on the same line. Each line is centered.


Constructor Index

 o FlowLayout()

Method Index

 o addLayoutComponent(String, Component)
Adds the specified component to the layout.
 o layoutContainer(Container)
Lays out the container.
 o minimumLayoutSize(Container)
Returns the minimum dimensions needed to layout the components contained in the specified target container.
 o removeLayoutComponent(Component)
Removes the specified component from the layout.
 o toString()
Returns the String representation of this FlowLayout's values.

Constructors

 o FlowLayout
 public FlowLayout()

Methods

 o addLayoutComponent
 public void addLayoutComponent(String where,
                                Component component)
Adds the specified component to the layout. Not used by this class.

Parameters:
name - the name of the component
comp - the the component to be added
 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
Removes the specified component from the layout. Not used by this class.

Parameters:
comp - the component to remove
 o layoutContainer
 public void layoutContainer(Container parent)
Lays out the container. This method will actually reshape the components in the target in order to satisfy the constraints of the BorderLayout object.

Parameters:
target - the specified component being laid out.
See Also:
Container
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container parent)
Returns the minimum dimensions needed to layout the components contained in the specified target container.

Parameters:
target - the component which needs to be laid out
 o toString
 public String toString()
Returns the String representation of this FlowLayout's values.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index