public class DVerticalFlowLayout extends FlowLayout
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BOTTOM
Specify the alignment to be bottom.
|
static int |
MIDDLE
Specify a middle alignment.
|
static int |
TOP
Specify alignment top.
|
| 构造器和说明 |
|---|
DVerticalFlowLayout()
Construct a new VerticalFlowLayout with a middle alignment, and
the fill to edge flag set.
|
DVerticalFlowLayout(boolean hfill,
boolean vfill)
Construct a new VerticalFlowLayout with a middle alignment.
|
DVerticalFlowLayout(int align)
Construct a new VerticalFlowLayout with a middle alignment.
|
DVerticalFlowLayout(int align,
boolean hfill,
boolean vfill)
Construct a new VerticalFlowLayout.
|
DVerticalFlowLayout(int align,
int hgap,
int vgap,
boolean hfill,
boolean vfill)
Construct a new VerticalFlowLayout.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
getHorizontalFill()
Returns true if the layout horizontally fills.
|
boolean |
getVerticalFill()
Returns true if the layout vertically fills.
|
void |
layoutContainer(Container target)
Lays out the container.
|
Dimension |
minimumLayoutSize(Container target)
Returns the minimum size needed to layout the target container.
|
Dimension |
preferredLayoutSize(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.
|
addLayoutComponent, getAlignment, getAlignOnBaseline, getHgap, getVgap, removeLayoutComponent, setAlignment, setAlignOnBaseline, setHgap, setVgap, toStringpublic static final int TOP
public static final int MIDDLE
public static final int BOTTOM
public DVerticalFlowLayout()
public DVerticalFlowLayout(boolean hfill,
boolean vfill)
hfill - the fill to edge flagvfill - the vertical fill in pixels.public DVerticalFlowLayout(int align)
align - the alignment valuepublic DVerticalFlowLayout(int align,
boolean hfill,
boolean vfill)
align - the alignment valuehfill - the horizontalfill in pixels.vfill - the vertical fill in pixels.public DVerticalFlowLayout(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 Dimension preferredLayoutSize(Container target)
preferredLayoutSize 在接口中 LayoutManagerpreferredLayoutSize 在类中 FlowLayouttarget - the component to lay outpublic Dimension minimumLayoutSize(Container target)
minimumLayoutSize 在接口中 LayoutManagerminimumLayoutSize 在类中 FlowLayouttarget - 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(Container target)
layoutContainer 在接口中 LayoutManagerlayoutContainer 在类中 FlowLayouttarget - the container to lay out.Copyright © 2021. All rights reserved.