Package com.actelion.research.gui
Class VerticalFlowLayout
- java.lang.Object
-
- com.actelion.research.gui.VerticalFlowLayout
-
- All Implemented Interfaces:
java.awt.LayoutManager
,java.io.Serializable
public class VerticalFlowLayout extends java.lang.Object implements java.awt.LayoutManager, java.io.Serializable
A vertical flow layout is similar to a flow layuot but it layouts the components vertically instead of horizontally.- Author:
- vassilidzuba
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VerticalFlowLayout()
Constructor for the VerticalFlowLayout objectVerticalFlowLayout(int halign, int valign)
Constructor for the VerticalFlowLayout objectVerticalFlowLayout(int halign, int valign, int hgap, int vgap, boolean hfill)
Constructor for the VerticalFlowLayout object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLayoutComponent(java.lang.String name, java.awt.Component comp)
Adds a feature to the LayoutComponent attribute of the VerticalFlowLayout objectint
getHalignment()
Gets the Halignment attribute of the VerticalFlowLayout objectint
getHgap()
Gets the Hgap attribute of the VerticalFlowLayout objectboolean
getHorizontalFill()
Gets the Hfill attribute of the VerticalFlowLayout objectint
getValignment()
Gets the Valignment attribute of the VerticalFlowLayout objectint
getVgap()
Gets the Vgap attribute of the VerticalFlowLayout objectvoid
layoutContainer(java.awt.Container target)
Description of the Methodjava.awt.Dimension
minimumLayoutSize(java.awt.Container target)
Description of the Methodjava.awt.Dimension
preferredLayoutSize(java.awt.Container target)
Description of the Methodvoid
removeLayoutComponent(java.awt.Component comp)
Description of the Methodvoid
setAlignment(int halign, int valign)
Sets the Alignment attribute of the VerticalFlowLayout objectvoid
setHgap(int hgap)
Sets the Hgap attribute of the VerticalFlowLayout objectvoid
setHorizontalFill(boolean hfill)
Sets the Hfill attribute of the VerticalFlowLayout objectvoid
setVgap(int vgap)
Sets the Vgap attribute of the VerticalFlowLayout objectjava.lang.String
toString()
Description of the Method
-
-
-
Field Detail
-
TOP
public static final int TOP
Description of the Field- See Also:
- Constant Field Values
-
CENTER
public static final int CENTER
Description of the Field- See Also:
- Constant Field Values
-
BOTTOM
public static final int BOTTOM
Description of the Field- See Also:
- Constant Field Values
-
LEFT
public static final int LEFT
Description of the Field- See Also:
- Constant Field Values
-
RIGHT
public static final int RIGHT
Description of the Field- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VerticalFlowLayout
public VerticalFlowLayout()
Constructor for the VerticalFlowLayout object
-
VerticalFlowLayout
public VerticalFlowLayout(int halign, int valign)
Constructor for the VerticalFlowLayout object- Parameters:
halign
- Description of Parametervalign
- Description of Parameter
-
VerticalFlowLayout
public VerticalFlowLayout(int halign, int valign, int hgap, int vgap, boolean hfill)
Constructor for the VerticalFlowLayout object- Parameters:
halign
- Description of Parametervalign
- Description of Parameterhgap
- Description of Parametervgap
- Description of Parameter
-
-
Method Detail
-
setAlignment
public void setAlignment(int halign, int valign)
Sets the Alignment attribute of the VerticalFlowLayout object- Parameters:
halign
- The new Alignment valuevalign
- The new Alignment value
-
setHgap
public void setHgap(int hgap)
Sets the Hgap attribute of the VerticalFlowLayout object- Parameters:
hgap
- The new Hgap value
-
setVgap
public void setVgap(int vgap)
Sets the Vgap attribute of the VerticalFlowLayout object- Parameters:
vgap
- The new Vgap value
-
getHalignment
public int getHalignment()
Gets the Halignment attribute of the VerticalFlowLayout object- Returns:
- The Halignment value
-
getValignment
public int getValignment()
Gets the Valignment attribute of the VerticalFlowLayout object- Returns:
- The Valignment value
-
getHgap
public int getHgap()
Gets the Hgap attribute of the VerticalFlowLayout object- Returns:
- The Hgap value
-
getVgap
public int getVgap()
Gets the Vgap attribute of the VerticalFlowLayout object- Returns:
- The Vgap value
-
setHorizontalFill
public void setHorizontalFill(boolean hfill)
Sets the Hfill attribute of the VerticalFlowLayout object- Parameters:
hfill
-
-
getHorizontalFill
public boolean getHorizontalFill()
Gets the Hfill attribute of the VerticalFlowLayout object- Returns:
- The Hfill value
-
addLayoutComponent
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
Adds a feature to the LayoutComponent attribute of the VerticalFlowLayout object- Specified by:
addLayoutComponent
in interfacejava.awt.LayoutManager
- Parameters:
name
- The feature to be added to the LayoutComponent attributecomp
- The feature to be added to the LayoutComponent attribute
-
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
Description of the Method- Specified by:
removeLayoutComponent
in interfacejava.awt.LayoutManager
- Parameters:
comp
- Description of Parameter
-
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Description of the Method- Specified by:
preferredLayoutSize
in interfacejava.awt.LayoutManager
- Parameters:
target
- Description of Parameter- Returns:
- Description of the Returned Value
-
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
Description of the Method- Specified by:
minimumLayoutSize
in interfacejava.awt.LayoutManager
- Parameters:
target
- Description of Parameter- Returns:
- Description of the Returned Value
-
layoutContainer
public void layoutContainer(java.awt.Container target)
Description of the Method- Specified by:
layoutContainer
in interfacejava.awt.LayoutManager
- Parameters:
target
- Description of Parameter
-
toString
public java.lang.String toString()
Description of the Method- Overrides:
toString
in classjava.lang.Object
- Returns:
- Description of the Returned Value
-
-