|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.GridLayout
cometa.gui.GridLayoutVariable
public class GridLayoutVariable
This class implements a slightly different version of the usual swing's GridLayout, allowing variable width for the columns. It is used to layout the method parameters dialog.
Constructor Summary | |
---|---|
GridLayoutVariable()
It creates a new instance of |
|
GridLayoutVariable(int rows,
int cols)
It creates a new instance of |
|
GridLayoutVariable(int rows,
int cols,
int hgap,
int vgap)
It creates a new instance of |
Method Summary | |
---|---|
void |
layoutContainer(java.awt.Container parent)
This method lays out a given container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Thi method gets the minimum layout size. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Thi method returns the preferred layout size. |
Methods inherited from class java.awt.GridLayout |
---|
addLayoutComponent, getColumns, getHgap, getRows, getVgap, removeLayoutComponent, setColumns, setHgap, setRows, setVgap, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GridLayoutVariable()
GridLayoutVariable.
public GridLayoutVariable(int rows, int cols)
GridLayoutVariable.
rows
- Number of rows.cols
- Number of columns.public GridLayoutVariable(int rows, int cols, int hgap, int vgap)
GridLayoutVariable.
rows
- Number of rows.cols
- Number of columns.hgap
- Horizontal gap.vgap
- Vertical gap.Method Detail |
---|
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class java.awt.GridLayout
parent
- The parent container.
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
minimumLayoutSize
in class java.awt.GridLayout
parent
- The parent container.
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class java.awt.GridLayout
parent
- The parent container to be layed out.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |