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.
-
ColumnLayout()
- Constructs a new ColumnLayout
with default values for the
horizontal and vertical gap.
-
ColumnLayout(int, int)
- Constructs a new ColumnLayout.
-
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.
-
preferredLayoutSize(Container)
- Returns the preferred dimensions for this layout given the components
in the specified target container.
-
removeLayoutComponent(Component)
- Removes the specified component from the layout.
-
toString()
- Returns the String representation of this ColumnLayout's values.
ColumnLayout
public ColumnLayout(int hgap,
int vgap)
- Constructs a new ColumnLayout.
- Parameters:
- hgap - horizontal gap
- vgap - vertical gap
ColumnLayout
public ColumnLayout()
- Constructs a new ColumnLayout
with default values for the
horizontal and vertical gap.
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
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Removes the specified component from the layout. Not used by
this class.
- Parameters:
- comp - the component to remove
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
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
layoutContainer
public void layoutContainer(Container target)
- Lays out the container.
- Parameters:
- target - the specified component being laid out.
- See Also:
- Container
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