Class TableLayoutConstraints
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.tablelayout.TableLayoutConstraints
- All Implemented Interfaces:
- TableLayoutConstants
TableLayoutConstraints binds components to their constraints.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintCell in which the upper left corner of the component laysintCell in which the lower right corner of the component laysintHorizontal justification if component occupies just one cellintintintVerical justification if component occupies just one cell
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs 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(String constraints) Constructs an TableLayoutConstraints from a string.
- 
Method Summary
- 
Field Details- 
col1public int col1Cell in which the upper left corner of the component lays
- 
row1public int row1
- 
col2public int col2Cell in which the lower right corner of the component lays
- 
row2public int row2
- 
hAlignpublic int hAlignHorizontal justification if component occupies just one cell
- 
vAlignpublic int vAlignVerical justification if component occupies just one cell
 
- 
- 
Constructor Details- 
TableLayoutConstraintspublic TableLayoutConstraints()Constructs an TableLayoutConstraints with the default settings. This constructor is equivalent to TableLayoutConstraints(0, 0, 0, 0, FULL, FULL).
- 
TableLayoutConstraintspublic TableLayoutConstraints(int col, int row) Constructs an TableLayoutConstraints a set of constraints.- Parameters:
- col- column where the component is placed
- row- row where the component is placed
 
- 
TableLayoutConstraintspublic TableLayoutConstraints(int col1, int row1, int col2, int row2) Constructs an TableLayoutConstraints a set of constraints.- Parameters:
- col1- column where upper-left cornor of the component is placed
- row1- row where upper-left cornor of the component is placed
- col2- column where lower-right cornor of the component is placed
- row2- row where lower-right cornor of the component is placed
 
- 
TableLayoutConstraintspublic TableLayoutConstraints(int col1, int row1, int col2, int row2, int hAlign, int vAlign) Constructs an TableLayoutConstraints a set of constraints.- Parameters:
- col1- column where upper-left cornor of the component is placed
- row1- row where upper-left cornor of the component is placed
- col2- column where lower-right cornor of the component is placed
- row2- row where lower-right cornor of the component is placed
- hAlign- horizontal justification of a component in a single cell
- vAlign- vertical justification of a component in a single cell
 
- 
TableLayoutConstraintsConstructs an TableLayoutConstraints from a string.- Parameters:
- 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 parameters with spaces instead of commas.
 
 
- 
- 
Method Details