|
|||||||||
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.GridLayout
Grid Layout.
Constructor Summary | |
GridLayout()
Constructs new GridLayout object. |
|
GridLayout(int rows,
int columns)
Constructs new GridLayout object. |
|
GridLayout(int rows,
int columns,
int hgap,
int vgap)
Constructs new GridLayout object. |
Method Summary | |
void |
addLayoutComponent(JQComponent comp,
java.lang.Object constraints)
Adds the specified component to the layout. |
int |
getColumns()
Returns the number of columns. |
int |
getHgap()
Returns the horizontal gap between components. |
int |
getRows()
Returns the number of rows. |
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 |
setColumns(int columns)
Sets the number of columns. |
void |
setHgap(int hgap)
Sets the horizontal gap between components. |
void |
setRows(int rows)
Sets the number of rows. |
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 |
Constructor Detail |
public GridLayout()
public GridLayout(int rows, int columns)
rows
- the number of rowscolumns
- the number of columnspublic GridLayout(int rows, int columns, int hgap, int vgap)
rows
- the number of rowscolumns
- the number of columnshgap
- the horizontal gap between componentsvgap
- the vertical gap between componentsMethod Detail |
public int getRows()
public void setRows(int rows)
rows
- the number of rowspublic int getColumns()
public void setColumns(int columns)
columns
- the number of columnspublic 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 |