com.strangelight.salsa
Interface J_GridBagContainer

All Known Implementing Classes:
J_Dialog, J_Panel

public interface J_GridBagContainer

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

add_space

public void add_space(int column,
                      int row,
                      int x,
                      int y)
Creates an empty cell with the given dimensions at the specified location.

Parameters:
column - Horizontal location of the cell
row - Vertical location of the cell
x - Width of the empty cell in pixels
y - Height of the empty cell in pixels

add_at

public void add_at(java.awt.Component c,
                   int column,
                   int row)
Inserts a component into the cell at the specified location.

Parameters:
column - Horizontal location of the cell
row - Vertical location of the cell

add_at

public 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

Parameters:
column - Horizontal location of the cell
row - Vertical location of the cell
colspan - Number of columns the cell should span
rowspan - Number of rows the cell should span

add_at

public 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. Also specifies an alignment for the component within the cell.

Parameters:
anchor - Alignment for the component within the cell (refer to java.awt.GridBagContraints for possible values.)
See Also:
GridBagConstraints