All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.mitre.cvw.mudsy.gui.VertFillLayout

java.lang.Object
   |
   +----org.mitre.cvw.mudsy.gui.VertFillLayout

public class VertFillLayout
extends Object
implements LayoutManager, Serializable
The Vertical Fill Layout class lays out items vertically and stretches them to fit the width. The center component is stretched vertically to fit the given space.


Constructor Index

 o VertFillLayout()
Constructs a new Vertical Fill Layout with default values for the horizontal and vertical gap.
 o VertFillLayout(int, int)
Constructs a new Vertical Fill Layout.

Method Index

 o addLayoutComponent(String, Component)
Adds the "Center" 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 "Center" component from the layout.
 o toString()
Returns the String representation of this VertFillLayout's values.

Constructors

 o VertFillLayout
 public VertFillLayout(int hgap,
                       int vgap)
Constructs a new Vertical Fill Layout.

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

Methods

 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component comp)
Adds the "Center" component to the layout. This component is to determine the width of the layout.

Parameters:
name - the name of the component
comp - the the component to be added
 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
Removes the "Center" component from the layout.

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

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index