|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.ui.layout.FlowLayout2Center
public class FlowLayout2Center
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 | |
|---|---|
FlowLayout2Center()
Constructs a new FlowLayout2Center with a centered alignment
and a default 5-unit horizontal and vertical gap. |
|
FlowLayout2Center(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 FlowLayout2Center()
FlowLayout2Center with a centered alignment
and a default 5-unit horizontal and vertical gap.
public FlowLayout2Center(int hgap,
int vgap)
hgap - the horizontal gap between components and between the components
and the borders of the Containervgap - the vertical gap between components and between the components and
the borders of the Container| Method Detail |
|---|
public int getHgap()
Container
ContainerFlowLayout.setHgap(int)public void setHgap(int hgap)
Container.
hgap - the horizontal gap between components and between the components
and the borders of the ContainerFlowLayout.getHgap()public int getVgap()
Container.
ContainerFlowLayout.setVgap(int)public void setVgap(int vgap)
Container.
vgap - the vertical gap between components and between the components and
the borders of the ContainerFlowLayout.getVgap()
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize in interface java.awt.LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize in interface java.awt.LayoutManagerpublic 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 | |||||||||