|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.layout.TableLayoutConstraints
public class TableLayoutConstraints
TableLayoutConstraints binds components to their constraints.
Field Summary | |
---|---|
int |
col1
Cell in which the upper left corner of the component lays |
int |
col2
Cell in which the lower right corner of the component lays |
int |
hAlign
Horizontal justification if component occupies just one cell |
int |
row1
Cell in which the upper left corner of the component lays |
int |
row2
Cell in which the lower right corner of the component lays |
int |
vAlign
Verical justification if component occupies just one cell |
Fields inherited from interface com.alee.extended.layout.TableLayoutConstants |
---|
BOTTOM, CENTER, FILL, FULL, LEADING, LEFT, MINIMUM, PREFERRED, RIGHT, TOP, TRAILING |
Constructor Summary | |
---|---|
TableLayoutConstraints()
Constructs an TableLayoutConstraints with the default settings. |
|
TableLayoutConstraints(int col,
int row)
Constructs an TableLayoutConstraints a set of constraints. |
|
TableLayoutConstraints(int col1,
int row1,
int col2,
int row2)
Constructs an TableLayoutConstraints a set of constraints. |
|
TableLayoutConstraints(int col1,
int row1,
int col2,
int row2,
int hAlign,
int vAlign)
Constructs an TableLayoutConstraints a set of constraints. |
|
TableLayoutConstraints(java.lang.String constraints)
Constructs an TableLayoutConstraints from a string. |
Method Summary | |
---|---|
java.lang.String |
toString()
Gets a string representation of this TableLayoutConstraints. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int col1
public int row1
public int col2
public int row2
public int hAlign
public int vAlign
Constructor Detail |
---|
public TableLayoutConstraints()
public TableLayoutConstraints(int col, int row)
col
- column where the component is placedrow
- row where the component is placedpublic TableLayoutConstraints(int col1, int row1, int col2, int row2)
col1
- column where upper-left cornor of the component is placedrow1
- row where upper-left cornor of the component is placedcol2
- column where lower-right cornor of the component is placedrow2
- row where lower-right cornor of the component is placedpublic TableLayoutConstraints(int col1, int row1, int col2, int row2, int hAlign, int vAlign)
col1
- column where upper-left cornor of the component is placedrow1
- row where upper-left cornor of the component is placedcol2
- column where lower-right cornor of the component is placedrow2
- row where lower-right cornor of the component is placedhAlign
- horizontal justification of a component in a single cellvAlign
- vertical justification of a component in a single cellpublic TableLayoutConstraints(java.lang.String constraints)
constraints
- indicates TableLayoutConstraints's position and justification as a string
in the form "column, row" or "column, row, horizontal justification,
vertical justification" or "column 1, row 1, column 2, row 2" or "column
1, row 1, column 2, row 2, horizontal justification, vertical
justification". It is also acceptable to delimit the paramters with spaces
instead of commas.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |