org.yasl.layout
Class YASLVerticalFlowLayout

java.lang.Object
  extended byorg.yasl.layout.YASLVerticalFlowLayout
All Implemented Interfaces:
LayoutManager

public class YASLVerticalFlowLayout
extends Object
implements LayoutManager


Field Summary
static int MAXIMIZE_CTRL_SIZE
           
static int NORMALIZE_CTRL_SIZE
           
static int STANDARD_CTRL_SIZE
           
 
Constructor Summary
YASLVerticalFlowLayout()
           
YASLVerticalFlowLayout(int align, int hgap, int vgap)
           
YASLVerticalFlowLayout(int align, int hgap, int vgap, int controlSize)
           
 
Method Summary
 void addLayoutComponent(String name, Component comp)
           
 int getAlign()
           
 int getControlSize()
           
 int getHgap()
           
 int getVgap()
           
 void layoutContainer(Container parent)
          Lays out the container from top to bottom.
 Dimension minimumLayoutSize(Container parent)
           
 Dimension preferredLayoutSize(Container parent)
           
 void removeLayoutComponent(Component comp)
           
 void setAlign(int _align)
           
 void setControlSize(int _controlSize)
           
 void setHgap(int _hgap)
           
 void setVgap(int _vgap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORMALIZE_CTRL_SIZE

public static final int NORMALIZE_CTRL_SIZE
See Also:
Constant Field Values

MAXIMIZE_CTRL_SIZE

public static final int MAXIMIZE_CTRL_SIZE
See Also:
Constant Field Values

STANDARD_CTRL_SIZE

public static final int STANDARD_CTRL_SIZE
See Also:
Constant Field Values
Constructor Detail

YASLVerticalFlowLayout

public YASLVerticalFlowLayout()

YASLVerticalFlowLayout

public YASLVerticalFlowLayout(int align,
                              int hgap,
                              int vgap)

YASLVerticalFlowLayout

public YASLVerticalFlowLayout(int align,
                              int hgap,
                              int vgap,
                              int controlSize)
Method Detail

getAlign

public int getAlign()

setAlign

public void setAlign(int _align)

getHgap

public int getHgap()

setHgap

public void setHgap(int _hgap)

getVgap

public int getVgap()

setVgap

public void setVgap(int _vgap)

getControlSize

public int getControlSize()

setControlSize

public void setControlSize(int _controlSize)

addLayoutComponent

public void addLayoutComponent(String name,
                               Component comp)
Specified by:
addLayoutComponent in interface LayoutManager

removeLayoutComponent

public void removeLayoutComponent(Component comp)
Specified by:
removeLayoutComponent in interface LayoutManager

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Specified by:
preferredLayoutSize in interface LayoutManager

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Specified by:
minimumLayoutSize in interface LayoutManager

layoutContainer

public void layoutContainer(Container parent)
Lays out the container from top to bottom. The items are aligned from the top. Items are positioned horizontally according to alignment. If expandControls is set to true, then all components will be resized to be the same width.

Specified by:
layoutContainer in interface LayoutManager
Parameters:
parent - Container