|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindfusion.diagramming.VerticalFlowLayout
public class VerticalFlowLayout
A version of FlowLayout
which arranges its
components vertically.
Field Summary | |
---|---|
static int |
BOTTOM
This value indicates that each row of components should be bottom-justified. |
static int |
CENTER
This value indicates that each row of components should be centered. |
static int |
LEFT
This value indicates that the components should be left-aligned. |
static int |
MIDDLE
This value indicates that the components should be centered horizontally. |
static int |
RIGHT
This value indicates that the components should be right-aligned. |
static int |
STRETCH
This value indicates that the components should be stretched horizontally. |
static int |
TOP
This value indicates that each row of components should be top-justified. |
Constructor Summary | |
---|---|
VerticalFlowLayout()
Initializes a new instance of the VerticalFlowLayout class with
a centered alignment and a default 5-unit horizontal and vertical gap. |
|
VerticalFlowLayout(int align)
Initializes a new instance of the VerticalFlowLayout class with
the specified alignment and a default 5-unit horizontal and vertical gap. |
|
VerticalFlowLayout(int align,
int hgap,
int vgap)
Initializes a new instance of the VerticalFlowLayout class with
the indicated alignment and the indicated horizontal and vertical gaps. |
|
VerticalFlowLayout(int halign,
int align,
int hgap,
int vgap)
Initializes a new instance of the VerticalFlowLayout class. |
Method Summary | |
---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
int |
getAlignment()
Gets the alignment for this layout. |
int |
getHAlignment()
Gets the horizontal alignment of layout components. |
int |
getHgap()
Gets the horizontal gap between components and between the components and the borders of the Container . |
float |
getLayoutAlignmentX(java.awt.Container target)
|
float |
getLayoutAlignmentY(java.awt.Container target)
|
int |
getVgap()
Gets the vertical gap between components and between the components and the borders of the Container . |
void |
invalidateLayout(java.awt.Container target)
|
void |
layoutContainer(java.awt.Container target)
Lays out the container. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
|
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. |
void |
removeLayoutComponent(java.awt.Component comp)
|
void |
setAlignment(int value)
Sets the alignment for this layout. |
void |
setHAlignment(int value)
Sets the horizontal alignment of layout components. |
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 . |
java.lang.String |
toString()
Returns a string representation of this VerticalFlowLayout
object and its values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TOP
public static final int CENTER
public static final int BOTTOM
public static final int LEFT
public static final int MIDDLE
public static final int RIGHT
public static final int STRETCH
Constructor Detail |
---|
public VerticalFlowLayout()
VerticalFlowLayout
class with
a centered alignment and a default 5-unit horizontal and vertical gap.
public VerticalFlowLayout(int align)
VerticalFlowLayout
class with
the specified alignment and a default 5-unit horizontal and vertical gap.
public VerticalFlowLayout(int align, int hgap, int vgap)
VerticalFlowLayout
class with
the indicated alignment and the indicated horizontal and vertical gaps.
public VerticalFlowLayout(int halign, int align, int hgap, int vgap)
VerticalFlowLayout
class.
Method Detail |
---|
public int getAlignment()
public void setAlignment(int value)
public int getHAlignment()
public void setHAlignment(int value)
public int getHgap()
Container
.
public void setHgap(int hgap)
Container
.
public int getVgap()
Container
.
public void setVgap(int vgap)
Container
.
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY
in interface java.awt.LayoutManager2
public void invalidateLayout(java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2
public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize
in interface java.awt.LayoutManager2
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)
VerticalFlowLayout
object.
layoutContainer
in interface java.awt.LayoutManager
public java.lang.String toString()
VerticalFlowLayout
object and its values.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |