public class VerticalFlowLayout extends AbstractLayoutManager
| Modifier and Type | Field and Description |
|---|---|
protected int |
align |
static int |
BOTTOM |
protected boolean |
hfill |
protected int |
hgap |
static int |
MIDDLE |
static int |
TOP
Description of the Field
|
protected boolean |
vfill |
protected int |
vgap |
| 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 hgap,
int vgap)
Construct a new VerticalFlowLayout with a middle alignemnt.
|
VerticalFlowLayout(int hgap,
int vgap,
boolean hfill,
boolean vfill)
Construct a new VerticalFlowLayout.
|
VerticalFlowLayout(int align,
int hgap,
int vgap)
Construct a new VerticalFlowLayout with a middle alignemnt.
|
VerticalFlowLayout(int align,
int hgap,
int vgap,
boolean hfill,
boolean vfill)
Construct a new VerticalFlowLayout.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculatePreferredHeight(java.awt.Container target)
Calculates preferred height required for components within this layout.
|
int |
getHgap() |
boolean |
getHorizontalFill()
Gets the HorizontalFill attribute of the VerticalLayout object
|
boolean |
getVerticalFill()
Gets the VerticalFill attribute of the VerticalLayout object
|
int |
getVgap() |
void |
layoutContainer(java.awt.Container target) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target) |
void |
setHgap(int hgap) |
void |
setHorizontalFill(boolean hfill)
Sets the HorizontalFill attribute of the VerticalLayout object
|
void |
setVerticalFill(boolean vfill)
Sets the VerticalFill attribute of the VerticalLayout object
|
void |
setVgap(int vgap) |
addComponent, addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, removeComponent, removeLayoutComponentpublic static final int TOP
public static final int MIDDLE
public static final int BOTTOM
protected int align
protected int hgap
protected int vgap
protected boolean hfill
protected boolean vfill
public VerticalFlowLayout()
public VerticalFlowLayout(boolean hfill,
boolean vfill)
public VerticalFlowLayout(int hgap,
int vgap)
public VerticalFlowLayout(int align,
int hgap,
int vgap)
public VerticalFlowLayout(int align)
public VerticalFlowLayout(int align,
boolean hfill,
boolean vfill)
public VerticalFlowLayout(int hgap,
int vgap,
boolean hfill,
boolean vfill)
public VerticalFlowLayout(int align,
int hgap,
int vgap,
boolean hfill,
boolean vfill)
public void setHgap(int hgap)
public void setVgap(int vgap)
public void setVerticalFill(boolean vfill)
public void setHorizontalFill(boolean hfill)
public int getHgap()
public int getVgap()
public boolean getVerticalFill()
public boolean getHorizontalFill()
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize in interface java.awt.LayoutManagerminimumLayoutSize in class AbstractLayoutManagerpublic void layoutContainer(java.awt.Container target)
protected int calculatePreferredHeight(java.awt.Container target)
target - container to calculate components preferred height for