FlowLayout subclass that fully supports wrapping of components.
| Fields inherited from class | Fields |
|---|---|
class java.awt.FlowLayout |
LEFT, CENTER, RIGHT, LEADING, TRAILING |
| Constructor and description |
|---|
WrapLayout
()Constructs a new WrapLayout with a left
alignment and a default 5-unit horizontal and vertical gap. |
WrapLayout
(int align)Constructs a new FlowLayout with the specified
alignment and a default 5-unit horizontal and vertical gap.
|
WrapLayout
(int align, int hgap, int vgap)Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)Returns the minimum dimensions needed to layout the visible components contained in the specified target container. |
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)Returns the preferred dimensions for this layout given the visible components in the specified target container. |
| Methods inherited from class | Name |
|---|---|
class java.awt.FlowLayout |
java.awt.FlowLayout#toString(), java.awt.FlowLayout#getAlignment(), java.awt.FlowLayout#setAlignment(int), java.awt.FlowLayout#getHgap(), java.awt.FlowLayout#setHgap(int), java.awt.FlowLayout#getVgap(), java.awt.FlowLayout#setVgap(int), java.awt.FlowLayout#setAlignOnBaseline(boolean), java.awt.FlowLayout#getAlignOnBaseline(), java.awt.FlowLayout#removeLayoutComponent(java.awt.Component), java.awt.FlowLayout#addLayoutComponent(java.lang.String, java.awt.Component), java.awt.FlowLayout#layoutContainer(java.awt.Container), java.awt.FlowLayout#preferredLayoutSize(java.awt.Container), java.awt.FlowLayout#minimumLayoutSize(java.awt.Container), java.awt.FlowLayout#wait(long), java.awt.FlowLayout#wait(long, int), java.awt.FlowLayout#wait(), java.awt.FlowLayout#equals(java.lang.Object), java.awt.FlowLayout#hashCode(), java.awt.FlowLayout#getClass(), java.awt.FlowLayout#notify(), java.awt.FlowLayout#notifyAll() |
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructs a new WrapLayout with a left
alignment and a default 5-unit horizontal and vertical gap.
Constructs a new FlowLayout with the specified
alignment and a default 5-unit horizontal and vertical gap.
The value of the alignment argument must be one of
WrapLayout, WrapLayout,
or WrapLayout.
align - the alignment valueCreates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps.
The value of the alignment argument must be one ofWrapLayout, WrapLayout,
or WrapLayout.
align - the alignment valuehgap - the horizontal gap between componentsvgap - the vertical gap between componentsReturns the minimum dimensions needed to layout the visible components contained in the specified target container.
target - the component which needs to be laid outReturns the preferred dimensions for this layout given the visible components in the specified target container.
target - the component which needs to be laid out