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.
-
FlowLayout()
-
-
addLayoutComponent(String, Component)
- Adds the specified component to the layout.
-
layoutContainer(Container)
- Lays out the container.
-
minimumLayoutSize(Container)
- Returns the minimum dimensions needed to layout the components
contained in the specified target container.
-
removeLayoutComponent(Component)
- Removes the specified component from the layout.
-
toString()
- Returns the String representation of this FlowLayout's values.
FlowLayout
public FlowLayout()
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
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Removes the specified component from the layout. Not used by
this class.
- Parameters:
- comp - the component to remove
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
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
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