public class VerticalFlowLayout
extends java.awt.FlowLayout
Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM
Specify the alignment to be bottom.
|
static int |
MIDDLE
Specify a middle alignment.
|
static int |
TOP
Specify alignment top.
|
Constructor and Description |
---|
VerticalFlowLayout()
Construct a new VerticalFlowLayout with a middle alignment, and
the fill to edge flag set.
|
VerticalFlowLayout(boolean hfill,
boolean vfill)
Construct a new VerticalFlowLayout with a middle alignment.
|
VerticalFlowLayout(int align)
Construct a new VerticalFlowLayout with a middle alignment.
|
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()
Returns true if the layout horizontally fills.
|
boolean |
getVerticalFill()
Returns true if the layout vertically fills.
|
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)
Set to true to enable horizontally fill.
|
void |
setVerticalFill(boolean vfill)
Set true to fill vertically.
|
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 fill to edge flagvfill
- the vertical fill in pixels.public VerticalFlowLayout(int align)
align
- the alignment valuepublic VerticalFlowLayout(int align, boolean hfill, boolean vfill)
align
- the alignment valuehfill
- the horizontalfill in pixels.vfill
- the vertical fill in pixels.public 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 flagvfill
- true if the panel should vertically fill.public 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 out.public void setVerticalFill(boolean vfill)
vfill
- true to fill vertically.public boolean getVerticalFill()
public void setHorizontalFill(boolean hfill)
hfill
- true to fill horizontally.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.