|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.ui.layout.FlowLayoutVertical
public class FlowLayoutVertical
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 | |
|---|---|
FlowLayoutVertical()
Constructs a new FlowLayout with a centered alignment and a
default 5-unit horizontal and vertical gap. |
|
FlowLayoutVertical(int preferredHeight)
Constructs a new FlowLayout with a centered alignment and a
default 5-unit horizontal and vertical gap. |
|
FlowLayoutVertical(int hgap,
int vgap,
int preferredHeight)
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)
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowLayoutVertical(int preferredHeight)
FlowLayout with a centered alignment and a
default 5-unit horizontal and vertical gap.
preferredHeight - the preferred height of this layout.public FlowLayoutVertical()
FlowLayout with a centered alignment and a
default 5-unit horizontal and vertical gap.
public FlowLayoutVertical(int hgap,
int vgap,
int preferredHeight)
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 ContainerpreferredHeight - the preferred height of this layout.| Method Detail |
|---|
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 | |||||||||