utilities
Class VFlowLayout
java.lang.Object
|
+--java.awt.FlowLayout
|
+--utilities.VFlowLayout
- All Implemented Interfaces:
- java.awt.LayoutManager, java.io.Serializable
- public class VFlowLayout
- extends java.awt.FlowLayout
VFlowLayout is similair to FlowLayout except it lays out components
vertically. Extends FlowLayout because it mimics much of the
behavior of the FlowLayout class, except vertically. An additional
feature is that you can specify a fill to edge flag, which causes
the VFlowLayout manager to resize all components to expand to the
column width Warning: This causes problems when the main panel
has less space that it needs and it seems to prohibit multi-column
output
- Version:
- 1.0, 1/1/96
- Author:
- Larry Schuler, based on FLowLayout by AVH., Bryan Horling, Make 1.1 compatible
- See Also:
- Serialized Form
Fields inherited from class java.awt.FlowLayout |
CENTER, LEADING, LEFT, RIGHT, TRAILING |
Constructor Summary |
VFlowLayout()
Construct a new VFlowLayout with a middle alignemnt, and
the fill to edge flag set. |
VFlowLayout(boolean fill)
Construct a new VFlowLayout with a middle alignemnt. |
VFlowLayout(int align)
Construct a new VFlowLayout with a middle alignemnt. |
VFlowLayout(int align,
boolean fill)
Construct a new VFlowLayout. |
VFlowLayout(int align,
int hgap,
int vgap,
boolean fill)
Construct a new VFlowLayout. |
Method Summary |
void |
layoutContainer(java.awt.Container target)
Lays out the container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Returns 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. |
Methods inherited from class java.awt.FlowLayout |
addLayoutComponent, getAlignment, getHgap, getVgap, removeLayoutComponent, setAlignment, setHgap, setVgap, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TOP
public static final int TOP
MIDDLE
public static final int MIDDLE
BOTTOM
public static final int BOTTOM
VFlowLayout
public VFlowLayout()
- Construct a new VFlowLayout with a middle alignemnt, and
the fill to edge flag set.
VFlowLayout
public VFlowLayout(boolean fill)
- Construct a new VFlowLayout with a middle alignemnt.
- Parameters:
fill
- the fill to edge flag
VFlowLayout
public VFlowLayout(int align)
- Construct a new VFlowLayout with a middle alignemnt.
- Parameters:
align
- the alignment value
VFlowLayout
public VFlowLayout(int align,
boolean fill)
- Construct a new VFlowLayout.
- Parameters:
align
- the alignment valuefill
- the fill to edge flag
VFlowLayout
public VFlowLayout(int align,
int hgap,
int vgap,
boolean fill)
- Construct a new VFlowLayout.
- Parameters:
align
- the alignment valuehgap
- the horizontal gap variablevgap
- the vertical gap variablefill
- the fill to edge flag
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 target)
- Returns the minimum size needed to layout the target container
- Overrides:
minimumLayoutSize
in class java.awt.FlowLayout
- Parameters:
target
- the component to lay out
layoutContainer
public void layoutContainer(java.awt.Container target)
- Lays out the container.
- Overrides:
layoutContainer
in class java.awt.FlowLayout
- Parameters:
target
- the container to lay out.