public class VerticalFlowLayout
extends java.awt.FlowLayout
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM |
static int |
MIDDLE |
static int |
TOP |
Constructor and Description |
---|
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 align,
int hgap,
int vgap,
boolean hfill,
boolean vfill)
Construct a new VerticalFlowLayout.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getHorizontalFill() |
boolean |
getVerticalFill() |
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.
|
void |
setHorizontalFill(boolean hfill) |
void |
setVerticalFill(boolean vfill) |
public static final int TOP
public static final int MIDDLE
public static final int BOTTOM
public VerticalFlowLayout()
public VerticalFlowLayout(boolean hfill, boolean vfill)
hfill
- the horizontal fill to edge flagvfill
- the vertical fill to edge flag.public VerticalFlowLayout(int align)
align
- the alignment valuepublic VerticalFlowLayout(int align, boolean hfill, boolean vfill)
align
- the alignment valuehfill
- the fill to edge flagpublic VerticalFlowLayout(int align, int hgap, int vgap, boolean hfill, boolean vfill)
align
- the alignment valuehgap
- the horizontal gap variablevgap
- the vertical gap variablehfill
- the fill to edge flagpublic java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class java.awt.FlowLayout
target
- the component to lay outpublic java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
in interface java.awt.LayoutManager
minimumLayoutSize
in class java.awt.FlowLayout
target
- the component to lay outpublic void setVerticalFill(boolean vfill)
public boolean getVerticalFill()
public void setHorizontalFill(boolean hfill)
public boolean getHorizontalFill()
public void layoutContainer(java.awt.Container target)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class java.awt.FlowLayout
target
- the container to lay out.