charva.awt
public class VerticalFlowLayout extends java.lang.Object implements LayoutManager
Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM |
static int |
MIDDLE |
static int |
TOP |
Constructor and Description |
---|
VerticalFlowLayout()
Default constructor.
|
VerticalFlowLayout(int align_,
int hgap_,
int vgap_)
Use this constructor when you want to set the alignment and the
horizontal and vertical gaps.
|
Modifier and Type | Method and Description |
---|---|
void |
doLayout(Container container_)
Lay out the components according to the specified alignment, hgap
and vgap.
|
int |
getAlignment()
Gets the alignment for this layout.
|
Dimension |
minimumSize(Container container_)
Calculate the minimum-size rectangle that can enclose all the
components in the given container.
|
void |
setAlignment(int align_)
Sets the alignment for this layout.
|
public static final int TOP
public static final int MIDDLE
public static final int BOTTOM
public VerticalFlowLayout()
public VerticalFlowLayout(int align_, int hgap_, int vgap_)
public void setAlignment(int align_)
public int getAlignment()
public Dimension minimumSize(Container container_)
minimumSize
in interface LayoutManager
public void doLayout(Container container_)
doLayout
in interface LayoutManager