com.alee.extended.layout
Class VerticalFlowLayout

java.lang.Object
  extended by java.awt.FlowLayout
      extended by com.alee.extended.layout.VerticalFlowLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public class VerticalFlowLayout
extends java.awt.FlowLayout

User: mgarin Date: 16.05.11 Time: 13:10

See Also:
Serialized Form

Field Summary
static int BOTTOM
           
protected  boolean hfill
           
protected  int hgap
           
static int MIDDLE
           
static int TOP
          Description of the Field
protected  boolean vfill
           
protected  int vgap
           
 
Fields inherited from class java.awt.FlowLayout
CENTER, LEADING, LEFT, RIGHT, TRAILING
 
Constructor Summary
VerticalFlowLayout()
          Construct a new VerticalFlowLayout with a middle alignemnt, and the fill to edge flag set.
VerticalFlowLayout(boolean hfill, boolean vfill)
          Construct a new VerticalFlowLayout with a middle alignemnt.
VerticalFlowLayout(int align)
          Construct a new VerticalFlowLayout with a middle alignemnt.
VerticalFlowLayout(int align, boolean hfill, boolean vfill)
          Construct a new VerticalFlowLayout.
VerticalFlowLayout(int hgap, int vgap)
          Construct a new VerticalFlowLayout with a middle alignemnt.
VerticalFlowLayout(int align, int hgap, int vgap)
          Construct a new VerticalFlowLayout with a middle alignemnt.
VerticalFlowLayout(int align, int hgap, int vgap, boolean hfill, boolean vfill)
          Construct a new VerticalFlowLayout.
 
Method Summary
 int getHgap()
          
 boolean getHorizontalFill()
          Gets the HorizontalFill attribute of the VerticalLayout object
 boolean getVerticalFill()
          Gets the VerticalFill attribute of the VerticalLayout object
 int getVgap()
          
 void layoutContainer(java.awt.Container target)
          
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
          
protected  void placeThem(java.awt.Container target, int x, int y, int width, int height, int first, int last)
          places the components defined by first to last within the target container using the bounds box defined
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
          
 void setHgap(int hgap)
          
 void setHorizontalFill(boolean hfill)
          Sets the HorizontalFill attribute of the VerticalLayout object
 void setVerticalFill(boolean vfill)
          Sets the VerticalFill attribute of the VerticalLayout object
 void setVgap(int vgap)
          
 
Methods inherited from class java.awt.FlowLayout
addLayoutComponent, getAlignment, getAlignOnBaseline, removeLayoutComponent, setAlignment, setAlignOnBaseline, 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
Description of the Field

See Also:
Constant Field Values

MIDDLE

public static final int MIDDLE
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

hgap

protected int hgap

vgap

protected int vgap

hfill

protected boolean hfill

vfill

protected boolean vfill
Constructor Detail

VerticalFlowLayout

public VerticalFlowLayout()
Construct a new VerticalFlowLayout with a middle alignemnt, and the fill to edge flag set.


VerticalFlowLayout

public VerticalFlowLayout(boolean hfill,
                          boolean vfill)
Construct a new VerticalFlowLayout with a middle alignemnt.


VerticalFlowLayout

public VerticalFlowLayout(int hgap,
                          int vgap)
Construct a new VerticalFlowLayout with a middle alignemnt.


VerticalFlowLayout

public VerticalFlowLayout(int align,
                          int hgap,
                          int vgap)
Construct a new VerticalFlowLayout with a middle alignemnt.


VerticalFlowLayout

public VerticalFlowLayout(int align)
Construct a new VerticalFlowLayout with a middle alignemnt.


VerticalFlowLayout

public VerticalFlowLayout(int align,
                          boolean hfill,
                          boolean vfill)
Construct a new VerticalFlowLayout.


VerticalFlowLayout

public VerticalFlowLayout(int align,
                          int hgap,
                          int vgap,
                          boolean hfill,
                          boolean vfill)
Construct a new VerticalFlowLayout.

Method Detail

setHgap

public void setHgap(int hgap)

Overrides:
setHgap in class java.awt.FlowLayout

setVgap

public void setVgap(int vgap)

Overrides:
setVgap in class java.awt.FlowLayout

setVerticalFill

public void setVerticalFill(boolean vfill)
Sets the VerticalFill attribute of the VerticalLayout object


setHorizontalFill

public void setHorizontalFill(boolean hfill)
Sets the HorizontalFill attribute of the VerticalLayout object


getHgap

public int getHgap()

Overrides:
getHgap in class java.awt.FlowLayout

getVgap

public int getVgap()

Overrides:
getVgap in class java.awt.FlowLayout

getVerticalFill

public boolean getVerticalFill()
Gets the VerticalFill attribute of the VerticalLayout object


getHorizontalFill

public boolean getHorizontalFill()
Gets the HorizontalFill attribute of the VerticalLayout object


preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Overrides:
preferredLayoutSize in class java.awt.FlowLayout

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Overrides:
minimumLayoutSize in class java.awt.FlowLayout

layoutContainer

public void layoutContainer(java.awt.Container target)

Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class java.awt.FlowLayout

placeThem

protected void placeThem(java.awt.Container target,
                         int x,
                         int y,
                         int width,
                         int height,
                         int first,
                         int last)
places the components defined by first to last within the target container using the bounds box defined