public class FlowLayout extends java.lang.Object implements LayoutManager
| Modifier and Type | Field and Description |
|---|---|
static int |
CENTER |
static int |
LEFT |
static int |
RIGHT |
| Constructor and Description |
|---|
FlowLayout()
Default constructor.
|
FlowLayout(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 LEFT
public static final int CENTER
public static final int RIGHT
public FlowLayout()
public FlowLayout(int align_,
int hgap_,
int vgap_)
public void setAlignment(int align_)
public int getAlignment()
public Dimension minimumSize(Container container_)
minimumSize in interface LayoutManagerpublic void doLayout(Container container_)
doLayout in interface LayoutManager