All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class map.ColumnLayout

java.lang.Object
   |
   +----map.ColumnLayout

public class ColumnLayout
extends Object
implements LayoutManager, Serializable
The ColumnLayout class lays out items vertically and centered so that the left hand side of each component lines up.


Constructor Index

 o ColumnLayout()
Constructs a new ColumnLayout with default values for the horizontal and vertical gap.
 o ColumnLayout(int, int)
Constructs a new ColumnLayout.

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 preferredLayoutSize(Container)
Returns the preferred dimensions for this layout given the components in the specified target container.
 o removeLayoutComponent(Component)
Removes the specified component from the layout.
 o toString()
Returns the String representation of this ColumnLayout's values.

Constructors

 o ColumnLayout
 public ColumnLayout(int hgap,
                     int vgap)
Constructs a new ColumnLayout.

Parameters:
hgap - horizontal gap
vgap - vertical gap
 o ColumnLayout
 public ColumnLayout()
Constructs a new ColumnLayout with default values for the horizontal and vertical gap.

Methods

 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component comp)
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 preferredLayoutSize
 public Dimension preferredLayoutSize(Container target)
Returns the preferred dimensions for this layout given the components in the specified target container.

Parameters:
target - the component which needs to be laid out
See Also:
Container, minimumLayoutSize
 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 component which needs to be laid out
See Also:
preferredLayoutSize
 o layoutContainer
 public void layoutContainer(Container target)
Lays out the container.

Parameters:
target - the specified component being laid out.
See Also:
Container
 o toString
 public String toString()
Returns the String representation of this ColumnLayout's values.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index