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.SerializableA 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 voidaddLayoutComponent(java.lang.String name, java.awt.Component comp)Adds a feature to the LayoutComponent attribute of the VerticalFlowLayout objectintgetHalignment()Gets the Halignment attribute of the VerticalFlowLayout objectintgetHgap()Gets the Hgap attribute of the VerticalFlowLayout objectbooleangetHorizontalFill()Gets the Hfill attribute of the VerticalFlowLayout objectintgetValignment()Gets the Valignment attribute of the VerticalFlowLayout objectintgetVgap()Gets the Vgap attribute of the VerticalFlowLayout objectvoidlayoutContainer(java.awt.Container target)Description of the Methodjava.awt.DimensionminimumLayoutSize(java.awt.Container target)Description of the Methodjava.awt.DimensionpreferredLayoutSize(java.awt.Container target)Description of the MethodvoidremoveLayoutComponent(java.awt.Component comp)Description of the MethodvoidsetAlignment(int halign, int valign)Sets the Alignment attribute of the VerticalFlowLayout objectvoidsetHgap(int hgap)Sets the Hgap attribute of the VerticalFlowLayout objectvoidsetHorizontalFill(boolean hfill)Sets the Hfill attribute of the VerticalFlowLayout objectvoidsetVgap(int vgap)Sets the Vgap attribute of the VerticalFlowLayout objectjava.lang.StringtoString()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:
addLayoutComponentin 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:
removeLayoutComponentin interfacejava.awt.LayoutManager- Parameters:
comp- Description of Parameter
-
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Description of the Method- Specified by:
preferredLayoutSizein 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:
minimumLayoutSizein 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:
layoutContainerin interfacejava.awt.LayoutManager- Parameters:
target- Description of Parameter
-
toString
public java.lang.String toString()
Description of the Method- Overrides:
toStringin classjava.lang.Object- Returns:
- Description of the Returned Value
-
-