Package uibooster.utils
Klasse WrapLayout
java.lang.Object
java.awt.FlowLayout
uibooster.utils.WrapLayout
- Alle implementierten Schnittstellen:
LayoutManager
,Serializable
FlowLayout subclass that fully supports wrapping of components.
Source from https://tips4java.wordpress.com/2008/11/06/wrap-layout/
- Siehe auch:
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungConstructs a newWrapLayout
with a left alignment and a default 5-unit horizontal and vertical gap.WrapLayout
(int align) Constructs a newFlowLayout
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. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungminimumLayoutSize
(Container target) Returns the minimum dimensions needed to layout the visible components contained in the specified target container.preferredLayoutSize
(Container target) Returns the preferred dimensions for this layout given the visible components in the specified target container.Von Klasse geerbte Methoden java.awt.FlowLayout
addLayoutComponent, getAlignment, getAlignOnBaseline, getHgap, getVgap, layoutContainer, removeLayoutComponent, setAlignment, setAlignOnBaseline, setHgap, setVgap, toString
-
Konstruktordetails
-
WrapLayout
public WrapLayout()Constructs a newWrapLayout
with a left alignment and a default 5-unit horizontal and vertical gap. -
WrapLayout
public WrapLayout(int align) Constructs a newFlowLayout
with the specified alignment and a default 5-unit horizontal and vertical gap. The value of the alignment argument must be one ofWrapLayout
,WrapLayout
, orWrapLayout
.- Parameter:
align
- the alignment value
-
WrapLayout
public WrapLayout(int align, int hgap, int vgap) Creates 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 of
WrapLayout
,WrapLayout
, orWrapLayout
.- Parameter:
align
- the alignment valuehgap
- the horizontal gap between componentsvgap
- the vertical gap between components
-
-
Methodendetails
-
preferredLayoutSize
Returns the preferred dimensions for this layout given the visible components in the specified target container.- Angegeben von:
preferredLayoutSize
in SchnittstelleLayoutManager
- Setzt außer Kraft:
preferredLayoutSize
in KlasseFlowLayout
- Parameter:
target
- the component which needs to be laid out- Gibt zurück:
- the preferred dimensions to lay out the subcomponents of the specified container
-
minimumLayoutSize
Returns the minimum dimensions needed to layout the visible components contained in the specified target container.- Angegeben von:
minimumLayoutSize
in SchnittstelleLayoutManager
- Setzt außer Kraft:
minimumLayoutSize
in KlasseFlowLayout
- Parameter:
target
- the component which needs to be laid out- Gibt zurück:
- the minimum dimensions to lay out the subcomponents of the specified container
-