|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A standard interface for doing basic GridBagLayout. The idea is to make any Container which implements J_GridBagContainer act like an HTML table.
Method Summary | |
void |
add_at(java.awt.Component c,
int column,
int row)
Inserts a component into the cell at the specified location. |
void |
add_at(java.awt.Component c,
int column,
int row,
int colspan,
int rowspan)
Inserts a component into the cell at the specified location, optionally causing the cell to expand to span more than one row or column |
void |
add_at(java.awt.Component c,
int grid_x,
int grid_y,
int span_x,
int span_y,
int anchor)
Inserts a component into the cell at the specified location, optionally causing the cell to expand to span more than one row or column. |
void |
add_space(int column,
int row,
int x,
int y)
Creates an empty cell with the given dimensions at the specified location. |
Method Detail |
public void add_space(int column, int row, int x, int y)
column
- Horizontal location of the cellrow
- Vertical location of the cellx
- Width of the empty cell in pixelsy
- Height of the empty cell in pixelspublic void add_at(java.awt.Component c, int column, int row)
column
- Horizontal location of the cellrow
- Vertical location of the cellpublic void add_at(java.awt.Component c, int column, int row, int colspan, int rowspan)
column
- Horizontal location of the cellrow
- Vertical location of the cellcolspan
- Number of columns the cell should spanrowspan
- Number of rows the cell should spanpublic void add_at(java.awt.Component c, int grid_x, int grid_y, int span_x, int span_y, int anchor)
anchor
- Alignment for the component within the cell
(refer to java.awt.GridBagContraints
for
possible values.)GridBagConstraints
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |