public class VerticalFlowLayout
extends java.awt.FlowLayout
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM |
static int |
CENTER |
static int |
LEFT |
static int |
MIDDLE |
static int |
RIGHT |
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 |
---|---|
int |
getAlignment() |
int |
getHgap()
Gets the horizontal gap between components.
|
boolean |
getHorizontalFill() |
boolean |
getVerticalFill() |
int |
getVgap()
Gets the vertical gap between components.
|
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 |
setAlignment(int HAlign,
int VAlign) |
void |
setHgap(int hgap)
Sets the horizontal gap between components.
|
void |
setHorizontalFill(boolean hfill) |
void |
setVerticalFill(boolean vfill) |
void |
setVgap(int vgap)
Sets the vertical gap between components.
|
public static final int TOP
public static final int MIDDLE
public static final int BOTTOM
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public VerticalFlowLayout()
public VerticalFlowLayout(boolean hfill, boolean vfill)
hfill
- the fill to edge flagvfill
- the fill to bottom flagpublic VerticalFlowLayout(int align)
align
- the alignment valuepublic VerticalFlowLayout(int align, boolean hfill, boolean vfill)
align
- the alignment valuehfill
- the hfill to edge flagvfill
- the fill to bottom 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 flagvfill
- the fill to bottom flagpublic int getHgap()
getHgap
in class java.awt.FlowLayout
FlowLayout.setHgap(int)
public void setHgap(int hgap)
setHgap
in class java.awt.FlowLayout
hgap
- the horizontal gappublic int getVgap()
getVgap
in class java.awt.FlowLayout
public void setVgap(int vgap)
setVgap
in class java.awt.FlowLayout
vgap
- the vertical gappublic 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 setAlignment(int HAlign, int VAlign)
public int getAlignment()
getAlignment
in class java.awt.FlowLayout
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.