Class como.awt.VertLayout
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class como.awt.VertLayout

java.lang.Object
   |
   +----como.awt.VertLayout

public class VertLayout
extends Object
implements LayoutManager
Vert layout is used to layout buttons in a panel. It will arrange buttons top down. Each line is aligned left/right/centered.

Variable Index

 o CENTER
 o LEFT
 o RIGHT
 o STRETCH

Constructor Index

 o VertLayout()
Constructs a new Vert Layout with a left alignment.
 o VertLayout(int)
Constructs a new Vert Layout with the specified alignment.
 o VertLayout(int, int, int)
Constructs a new Vert Layout with the specified alignment and gap values.

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 FlowLayout's values.

Variables

 o LEFT
  public final static int LEFT
 o CENTER
  public final static int CENTER
 o RIGHT
  public final static int RIGHT
 o STRETCH
  public final static int STRETCH

Constructors

 o VertLayout
  public VertLayout()
Constructs a new Vert Layout with a left alignment.
 o VertLayout
  public VertLayout(int align)
Constructs a new Vert Layout with the specified alignment.
Parameters:
align - the alignment value
 o VertLayout
  public VertLayout(int align,
                    int hgap,
                    int vgap)
Constructs a new Vert Layout with the specified alignment and gap values.
Parameters:
align - the alignment value
hgap - the horizontal gap variable
vgap - the vertical gap variable

Methods

 o addLayoutComponent
  public void addLayoutComponent(String name,
                                 Component comp)
Adds the specified component to the layout. Does not apply.
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. Does not apply.
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, minimumSize
 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:
preferredSize
 o layoutContainer
  public void layoutContainer(Container target)
Lays out the container. This method will actually reshape the components in target in order to satisfy the constraints of the VertLayout object.
Parameters:
target - the specified container being laid out.
See Also:
Container
 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