|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.layouts.FlowLayout
Flow Layout.
Field Summary | |
static int |
CENTER
Center layout alignment (the value is 1). |
static int |
LEADING
Leading layout alignment (the value is 3). |
static int |
LEFT
Left layout alignment (the value is 0). |
static int |
RIGHT
Right layout alignment (the value is 2). |
static int |
TRAILING
Trailing layout alignment (the value is 4). |
Constructor Summary | |
FlowLayout()
Constructs new FlowLayout object. |
|
FlowLayout(int align)
Constructs new FlowLayout object. |
|
FlowLayout(int align,
int hgap,
int vgap)
Constructs new FlowLayout object. |
Method Summary | |
void |
addLayoutComponent(JQComponent comp,
java.lang.Object constraints)
Adds the specified component to the layout. |
int |
getAlignment()
Returns the alignment for this layout. |
int |
getHgap()
Returns the horizontal gap between components. |
int |
getVgap()
Returns the vertical gap between components. |
void |
invalidateLayout(JQContainer target)
Invalidates the layout. |
void |
layoutContainer(JQContainer target)
Lays out the specified container. |
Dimension |
maximumLayoutSize(JQContainer target)
Calculates the maximum size dimensions for the specified container. |
Dimension |
minimumLayoutSize(JQContainer target)
Calculates the minimum size dimensions for the specified containers. |
Dimension |
preferredLayoutSize(JQContainer target)
Calculates the preferred size dimensions for the specified container. |
void |
removeLayoutComponent(JQComponent comp)
Removes the specified component from the layout. |
void |
setAlignment(int alignment)
Sets the alignment for this layout. |
void |
setHgap(int hgap)
Sets the horizontal gap between components. |
void |
setVgap(int vgap)
Sets the vertical gap between components. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public static final int LEADING
public static final int TRAILING
Constructor Detail |
public FlowLayout(int align, int hgap, int vgap)
align
- the alignment valuehgap
- the horizontal gap between componentsvgap
- the vertical gap between componentspublic FlowLayout(int align)
align
- the alignment valuepublic FlowLayout()
Method Detail |
public int getAlignment()
public void setAlignment(int alignment)
alignment
- he alignmentpublic int getHgap()
public void setHgap(int hgap)
hgap
- the horizontal gap between componentspublic int getVgap()
public void setVgap(int vgap)
vgap
- the vertical gap between componentspublic void addLayoutComponent(JQComponent comp, java.lang.Object constraints)
addLayoutComponent
in interface LayoutManager
comp
- the component to be addedconstraints
- the layout constraintspublic void removeLayoutComponent(JQComponent comp)
removeLayoutComponent
in interface LayoutManager
comp
- the component to be removedpublic Dimension preferredLayoutSize(JQContainer target)
preferredLayoutSize
in interface LayoutManager
target
- the container to be laid out
public Dimension maximumLayoutSize(JQContainer target)
maximumLayoutSize
in interface LayoutManager
target
- the component to be laid out
public Dimension minimumLayoutSize(JQContainer target)
minimumLayoutSize
in interface LayoutManager
target
- the component to be laid out
public void layoutContainer(JQContainer target)
layoutContainer
in interface LayoutManager
target
- the container to be laid outpublic void invalidateLayout(JQContainer target)
invalidateLayout
in interface LayoutManager
target
- the container to be laid outpublic java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |