org.comedia.layout
Class CVerticalFlowLayout

java.lang.Object
  |
  +--java.awt.FlowLayout
        |
        +--org.comedia.layout.CVerticalFlowLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public class CVerticalFlowLayout
extends java.awt.FlowLayout
implements java.io.Serializable

Implements layout with vertical arranging visual components.

See Also:
Serialized Form

Field Summary
static int BOTTOM
          The aligment at the bottom of container.
static int MIDDLE
          The aligment at the center of container.
static int TOP
          The aligment at the top of container.
 
Fields inherited from class java.awt.FlowLayout
CENTER, LEADING, LEFT, RIGHT, TRAILING
 
Constructor Summary
CVerticalFlowLayout()
          Constructs this layout with default properties.
CVerticalFlowLayout(boolean hfill, boolean vfill)
          Constructs this layout and assignes class properties.
CVerticalFlowLayout(int align)
          Constructs this layout and assignes class properties.
CVerticalFlowLayout(int align, boolean hfill, boolean vfill)
          Constructs this layout and assignes class properties.
CVerticalFlowLayout(int align, int hgap, int vgap, boolean hfill, boolean vfill)
          Constructs this layout and assignes class properties.
 
Method Summary
 int getHgap()
          Gets the horizontal gap between components.
 boolean getHorizontalFill()
          Gets a current horizontal fill value.
 boolean getVerticalFill()
          Gets a current vertical fill value.
 int getVgap()
          Gets the vertical gap between components.
 void layoutContainer(java.awt.Container container)
          Lays out the container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container container)
          Counts the minimum size needed to layout the target container.
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
          Returns the preferred dimensions given the components in the target container.
 void setHgap(int hgap)
          Sets the horizontal gap between components.
 void setHorizontalFill(boolean hfill)
          Sets a new horizontal fill.
 void setVerticalFill(boolean vfill)
          Sets a new vertical fill.
 void setVgap(int vgap)
          Sets the vertical gap between components.
 
Methods inherited from class java.awt.FlowLayout
addLayoutComponent, getAlignment, removeLayoutComponent, setAlignment, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOP

public static final int TOP
The aligment at the top of container.

MIDDLE

public static final int MIDDLE
The aligment at the center of container.

BOTTOM

public static final int BOTTOM
The aligment at the bottom of container.
Constructor Detail

CVerticalFlowLayout

public CVerticalFlowLayout()
Constructs this layout with default properties.

CVerticalFlowLayout

public CVerticalFlowLayout(boolean hfill,
                           boolean vfill)
Constructs this layout and assignes class properties.
Parameters:
fill - the fill to edge flag.

CVerticalFlowLayout

public CVerticalFlowLayout(int align)
Constructs this layout and assignes class properties.
Parameters:
align - the alignment value.

CVerticalFlowLayout

public CVerticalFlowLayout(int align,
                           boolean hfill,
                           boolean vfill)
Constructs this layout and assignes class properties.
Parameters:
align - the alignment value.
fill - the fill to edge flag.

CVerticalFlowLayout

public CVerticalFlowLayout(int align,
                           int hgap,
                           int vgap,
                           boolean hfill,
                           boolean vfill)
Constructs this layout and assignes class properties.
Parameters:
align - the alignment value.
hgap - the horizontal gap variable.
vgap - the vertical gap variable.
fill - the fill to edge flag.
Method Detail

getHgap

public int getHgap()
Gets the horizontal gap between components.
Overrides:
getHgap in class java.awt.FlowLayout

setHgap

public void setHgap(int hgap)
Sets the horizontal gap between components.
Overrides:
setHgap in class java.awt.FlowLayout
Parameters:
hgap - a new horizontal gap value.

getVgap

public int getVgap()
Gets the vertical gap between components.
Overrides:
getVgap in class java.awt.FlowLayout

setVgap

public void setVgap(int vgap)
Sets the vertical gap between components.
Overrides:
setVgap in class java.awt.FlowLayout
Parameters:
vgap - a new vertical gap value.

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions given the components in the target container.
Overrides:
preferredLayoutSize in class java.awt.FlowLayout
Parameters:
target - the component to lay out

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container container)
Counts the minimum size needed to layout the target container.
Overrides:
minimumLayoutSize in class java.awt.FlowLayout
Parameters:
container - a container of visual components to be aligned.

setVerticalFill

public void setVerticalFill(boolean vfill)
Sets a new vertical fill.
Parameters:
vfill - a new vertical fill value.

getVerticalFill

public boolean getVerticalFill()
Gets a current vertical fill value.

setHorizontalFill

public void setHorizontalFill(boolean hfill)
Sets a new horizontal fill.
Parameters:
hfill - a new horizontal fill value.

getHorizontalFill

public boolean getHorizontalFill()
Gets a current horizontal fill value.

layoutContainer

public void layoutContainer(java.awt.Container container)
Lays out the container.
Overrides:
layoutContainer in class java.awt.FlowLayout
Parameters:
container - the container to lay out.