|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.FlowLayout
uk.ac.essex.common.gui.util.WrappingFlowLayout
public class WrappingFlowLayout
FlowLayout subclass that fully supports wrapping of components
Copyright: Copyright (c) 2001
Company: MSX-International
Field Summary |
---|
Fields inherited from class java.awt.FlowLayout |
---|
CENTER, LEADING, LEFT, RIGHT, TRAILING |
Constructor Summary | |
---|---|
WrappingFlowLayout()
Constructs a new WrappingFlowLayout with a centered
alignment and a default 5-unit horizontal and vertical gap. |
|
WrappingFlowLayout(int align)
Constructs a new FlowLayout with the specified
alignment and a default 5-unit horizontal and vertical gap. |
|
WrappingFlowLayout(int align,
int hgap,
int vgap)
Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps. |
Method Summary | |
---|---|
void |
layoutContainer(java.awt.Container target)
Lays out the container. |
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 java.awt.FlowLayout |
---|
addLayoutComponent, getAlignment, getAlignOnBaseline, getHgap, getVgap, removeLayoutComponent, setAlignment, setAlignOnBaseline, setHgap, setVgap, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WrappingFlowLayout()
WrappingFlowLayout
with a centered
alignment and a default 5-unit horizontal and vertical gap.
public WrappingFlowLayout(int align)
FlowLayout
with the specified
alignment and a default 5-unit horizontal and vertical gap.
The value of the alignment argument must be one of
WrappingFlowLayout
, WrappingFlowLayout
,
or WrappingFlowLayout
.
align
- the alignment valuepublic WrappingFlowLayout(int align, int hgap, int vgap)
The value of the alignment argument must be one of
WrappingFlowLayout
, WrappingFlowLayout
,
or WrappingFlowLayout
.
align
- the alignment valuehgap
- the horizontal gap between componentsvgap
- the vertical gap between componentsMethod Detail |
---|
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class java.awt.FlowLayout
target
- the component which needs to be laid out
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
in interface java.awt.LayoutManager
minimumLayoutSize
in class java.awt.FlowLayout
target
- the component which needs to be laid out
public void layoutContainer(java.awt.Container target)
WrappingFlowLayout
object.
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class java.awt.FlowLayout
target
- the specified component being laid out
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |