| java.lang.Object org.gui4j.core.swing.TableLayoutConstraints
TableLayoutConstraints | public class TableLayoutConstraints implements TableLayoutConstants,Serializable(Code) | | TableLayoutConstraints binds components to their constraints.
version: 1.1 4/4/02 author: Daniel E. Barbalace |
Constructor Summary | |
public | TableLayoutConstraints() Constructs an TableLayoutConstraints with the default settings. | public | TableLayoutConstraints(String constraints) Constructs an TableLayoutConstraints from a string. | public | TableLayoutConstraints(int col1, int row1, int col2, int row2, int hAlign, int vAlign) Constructs an TableLayoutConstraints a set of constraints. |
Method Summary | |
public String | toString() Gets a string representation of this TableLayoutConstraints. |
col1row1 | public int col1row1(Code) | | Cell in which the upper left corner of the component lays
|
col2row2 | public int col2row2(Code) | | Cell in which the lower right corner of the component lays
|
hAlign | public int hAlign(Code) | | Horizontal justification if component occupies just one cell
|
vAlign | public int vAlign(Code) | | Verical justification if component occupies just one cell
|
TableLayoutConstraints | public TableLayoutConstraints()(Code) | | Constructs an TableLayoutConstraints with the default settings. This
constructor is equivalent to TableLayoutConstraints(0, 0, 0, 0, FULL, FULL).
|
TableLayoutConstraints | public TableLayoutConstraints(String constraints)(Code) | | Constructs an TableLayoutConstraints from a string.
Parameters: constraints - indicates TableLayoutConstraints's position and justificationas a string in the form "row, column" or"row, column, horizontal justification, verticaljustification" or "row 1, column 1, row 2, column 2".It is also acceptable to delimit the paramters withspaces instead of commas. |
TableLayoutConstraints | public TableLayoutConstraints(int col1, int row1, int col2, int row2, int hAlign, int vAlign)(Code) | | Constructs an TableLayoutConstraints a set of constraints.
Parameters: col1 - column where upper-left cornor of the component is placed Parameters: row1 - row where upper-left cornor of the component is placed Parameters: col2 - column where lower-right cornor of the component is placed Parameters: row2 - row where lower-right cornor of the component is placed Parameters: hAlign - horizontal justification of a component in a single cell Parameters: vAlign - vertical justification of a component in a single cell |
toString | public String toString()(Code) | | Gets a string representation of this TableLayoutConstraints.
a string in the form "row 1, column 1, row 2, column 2, horizontaljustification, vertical justification" |
|
|