Example usage for Java com.jgoodies.forms.layout CellConstraints fields, constructors, methods, implement or subclass
The text is from its open source code.
Alignment | DEFAULT Use the column's or row's default alignment. |
Alignment | FILL Fill the cell either horizontally or vertically. |
Alignment | LEFT Put the component in the left. |
Alignment | RIGHT Put the component in the right. |
Alignment | CENTER Put the component in the center. |
Alignment | TOP Put the component in the top. |
Alignment | BOTTOM Put the component in the bottom. |
CellConstraints() Constructs a default instance of CellConstraints . | |
CellConstraints(int gridX, int gridY, int gridWidth, int gridHeight, Alignment hAlign, Alignment vAlign, Insets insets) Constructs an instance of CellConstraints for the complete set of available properties. Examples: new CellConstraints(1, 3, 2, 1, CellConstraints.LEFT, CellConstraints.BOTTOM, new Insets(0, 1, 0, 3)); new CellConstraints(1, 3, 7, 3, CellConstraints.CENTER, CellConstraints.FILL, new Insets(0, 1, 0, 0)); | |
CellConstraints(int gridX, int gridY, Alignment hAlign, Alignment vAlign) Constructs an instance of CellConstraints for the given cell position, anchor, and fill. Examples: new CellConstraints(1, 3, CellConstraints.LEFT, CellConstraints.BOTTOM); new CellConstraints(1, 3, CellConstraints.CENTER, CellConstraints.FILL); | |
CellConstraints(int gridX, int gridY, int gridWidth, int gridHeight) Constructs an instance of CellConstraints for the given cell position and size. Examples: new CellConstraints(1, 3, 2, 1); new CellConstraints(1, 3, 7, 3); | |
CellConstraints(String encodedConstraints) Constructs an instance of CellConstraints from the given encoded string properties. Examples: new CellConstraints("1, 3"); new CellConstraints("1, 3, left, bottom"); new CellConstraints("1, 3, 2, 1, left, bottom"); new CellConstraints("1, 3, 2, 1, l, b"); | |
CellConstraints(int gridX, int gridY, int gridWidth, int gridHeight, Alignment hAlign, Alignment vAlign) Constructs an instance of CellConstraints for the given cell position and size, anchor, and fill. Examples: new CellConstraints(1, 3, 2, 1, CellConstraints.LEFT, CellConstraints.BOTTOM); new CellConstraints(1, 3, 7, 3, CellConstraints.CENTER, CellConstraints.FILL); | |
CellConstraints(int gridX, int gridY) Constructs an instance of CellConstraints for the given cell position. Examples: new CellConstraints(1, 3); new CellConstraints(1, 3); |
CellConstraints | rc(int row, int col) Sets row and column origins; sets height and width to 1; uses the default alignments. Examples: cc.rc(1, 1); cc.rc(3, 1); |
CellConstraints | rchw(int row, int col, int rowSpan, int colSpan) Sets the row, column, height, and width; uses default alignments. Examples: cc.rchw(1, 3, 2, 1); cc.rchw(1, 3, 7, 3); |
CellConstraints | rcw(int row, int col, int colSpan) Sets the row, column, height, and width; uses a height (row span) of 1 and the vertical and horizontal default alignments. Examples: cc.rcw(3, 1, 7); cc.rcw(3, 1, 2); |
CellConstraints | xy(int col, int row) Sets column and row origins; sets width and height to 1; uses the default alignments. Examples: cc.xy(1, 1); cc.xy(1, 3); |
CellConstraints | xy(int col, int row, Alignment colAlign, Alignment rowAlign) Sets the column and row origins; sets width and height to 1; set horizontal and vertical alignment using the specified objects. Examples: cc.xy(1, 3, CellConstraints.LEFT, CellConstraints.BOTTOM); cc.xy(1, 3, CellConstraints.CENTER, CellConstraints.FILL); |
CellConstraints | xy(int col, int row, String encodedAlignments) Sets column and row origins; sets width and height to 1; decodes horizontal and vertical alignments from the given string. Examples: cc.xy(1, 3, "left, bottom"); cc.xy(1, 3, "l, b"); cc.xy(1, 3, "center, fill"); cc.xy(1, 3, "c, f"); |
CellConstraints | xyw(int col, int row, int colSpan) Sets the column, row, width, and height; uses a height (row span) of 1 and the horizontal and vertical default alignments. Examples: cc.xyw(1, 3, 7); cc.xyw(1, 3, 2); |
CellConstraints | xyw(int col, int row, int colSpan, Alignment colAlign, Alignment rowAlign) Sets the column, row, width, and height; sets the horizontal and vertical alignment using the specified alignment objects. |
CellConstraints | xyw(int col, int row, int colSpan, String encodedAlignments) Sets the column, row, width, and height; decodes the horizontal and vertical alignments from the given string. |
CellConstraints | xywh(int col, int row, int colSpan, int rowSpan) Sets the column, row, width, and height; uses default alignments. Examples: cc.xywh(1, 3, 2, 1); cc.xywh(1, 3, 7, 3); |
CellConstraints | xywh(int col, int row, int colSpan, int rowSpan, Alignment colAlign, Alignment rowAlign) Sets the column, row, width, and height; sets the horizontal and vertical alignment using the specified alignment objects. Examples: cc.xywh(1, 3, 2, 1, CellConstraints.LEFT, CellConstraints.BOTTOM); cc.xywh(1, 3, 7, 3, CellConstraints.CENTER, CellConstraints.FILL); |
CellConstraints | xywh(int col, int row, int colSpan, int rowSpan, String encodedAlignments) Sets the column, row, width, and height; decodes the horizontal and vertical alignments from the given string. Examples: cc.xywh(1, 3, 2, 1, "left, bottom"); cc.xywh(1, 3, 2, 1, "l, b"); cc.xywh(1, 3, 7, 3, "center, fill"); cc.xywh(1, 3, 7, 3, "c, f"); |