|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.ui.layout.FlowLayout2
public class FlowLayout2
A flow layout arranges components in a directional flow, much like lines of
text in a paragraph. The flow direction is determined by the container's
componentOrientation
property and may be one of two values:
ComponentOrientation.LEFT_TO_RIGHT
ComponentOrientation.RIGHT_TO_LEFT
A flow layout lets each component assume its natural (preferred) size.
Constructor Summary | |
---|---|
FlowLayout2()
Constructs a new FlowLayout with a centered alignment and a
default 5-unit horizontal and vertical gap. |
|
FlowLayout2(int hgap,
int vgap)
Creates a new flow layout manager with the indicated horizontal and vertical gaps. |
Method Summary | |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
int |
getHgap()
Gets the horizontal gap between components and between the components and the borders of the Container |
int |
getVgap()
Gets the vertical gap between components and between the components and the borders of the Container . |
void |
layoutContainer(java.awt.Container target)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
|
void |
removeLayoutComponent(java.awt.Component comp)
|
void |
setHgap(int hgap)
Sets the horizontal gap between components and between the components and the borders of the Container . |
void |
setVgap(int vgap)
Sets the vertical gap between components and between the components and the borders of the Container . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowLayout2()
FlowLayout
with a centered alignment and a
default 5-unit horizontal and vertical gap.
public FlowLayout2(int hgap, int vgap)
hgap
- the horizontal gap between components and between the components
and the borders of the Container
vgap
- the vertical gap between components and between the components and
the borders of the Container
Method Detail |
---|
public int getHgap()
Container
Container
FlowLayout.setHgap(int)
public void setHgap(int hgap)
Container
.
hgap
- the horizontal gap between components and between the components
and the borders of the Container
FlowLayout.getHgap()
public int getVgap()
Container
.
Container
FlowLayout.setVgap(int)
public void setVgap(int vgap)
Container
.
vgap
- the vertical gap between components and between the components and
the borders of the Container
FlowLayout.getVgap()
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
in interface java.awt.LayoutManager
public void layoutContainer(java.awt.Container target)
layoutContainer
in interface java.awt.LayoutManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |