Java com.jgoodies.forms.layout CellConstraints fields, constructors, methods, implement or subclass

Example usage for Java com.jgoodies.forms.layout CellConstraints fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.jgoodies.forms.layout CellConstraints.

The text is from its open source code.

Field

AlignmentDEFAULT
Use the column's or row's default alignment.
AlignmentFILL
Fill the cell either horizontally or vertically.
AlignmentLEFT
Put the component in the left.
AlignmentRIGHT
Put the component in the right.
AlignmentCENTER
Put the component in the center.
AlignmentTOP
Put the component in the top.
AlignmentBOTTOM
Put the component in the bottom.

Constructor

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); 

Method

CellConstraintsrc(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); 
CellConstraintsrchw(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); 
CellConstraintsrcw(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); 
CellConstraintsxy(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); 
CellConstraintsxy(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); 
CellConstraintsxy(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"); 
CellConstraintsxyw(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); 
CellConstraintsxyw(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.
CellConstraintsxyw(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.
CellConstraintsxywh(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); 
CellConstraintsxywh(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); 
CellConstraintsxywh(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");