com.gargoylesoftware.base.gui
public class TableLayoutConstraints extends Object implements Serializable
We use the convention of specifying row before column to conform with the swing standards. This seems counterintuitive when specifying x,y (actually y,x) co-ordinates however we felt it was more important to conform to existing java layout standards.
Version: $Revision: 1.5 $
Field Summary | |
---|---|
int | columnSpan_ |
int | column_ |
int | horizontalAlignment_ |
boolean | horizontalStretch_ |
boolean | isImmutable_ |
boolean | obeyMaximumSize_ |
boolean | obeyMinimumSize_ |
int | rowSpan_ |
int | row_ |
static long | serialVersionUID |
int | verticalAlignment_ |
boolean | verticalStretch_ |
Constructor Summary | |
---|---|
TableLayoutConstraints(int row, int column)
Create a new instance. |
Method Summary | |
---|---|
protected static void | assertNotNull(String fieldName, Object fieldValue)
Verify that the specified value is not null. |
void | ensureMutable()
Check to make sure that we are allowed to modify this object. |
int | getColumn()
Return the column. |
int | getColumnSpan()
Return the number of columns this component will span. |
int | getHorizontalAlignment()
Return the horizontalAlignment. |
boolean | getHorizontalStretch()
Return true if this component can be stretched horizontally. |
boolean | getObeyMaximumSize()
Return true if we are obeying the maximum size. |
boolean | getObeyMinimumSize()
Return true if we are obeying the minimum size. |
int | getRow()
Return the row. |
int | getRowSpan()
Return the number of rows this component will span. |
int | getVerticalAlignment()
Return the vertical alignment. |
boolean | getVerticalStretch()
Return true if this component can be stretched vertically. |
boolean | isImmutable()
Return true if this object is immutable. |
static TableLayoutConstraints | makeConstraints(String constraintString)
Create an instance of TableLayoutConstraints from the specified string.
|
static void | parseConstraintString(TableLayoutConstraints constraints, String constraintString, boolean isRow)
Parse the constraint string. |
void | setColumn(int column)
Set the column. |
void | setColumnSpan(int span)
Set the number of columns that this component will span. |
void | setHorizontalAlignment(int alignment)
Set the horizontal alignment of the component within the specified
area. |
void | setHorizontalStretch(boolean stretch)
Set whether or not this component can be stretched horizontally. |
void | setImmutable()
Make this object immutable. |
void | setObeyMaximumSize(boolean obey)
Set whether or not the component should obey it's maximum size. |
void | setObeyMinimumSize(boolean obey)
Set whether or not we should obey the minimum size of the component. |
void | setRow(int row)
Set the row. |
void | setRowSpan(int span)
Set the number of rows that this component will span. |
void | setVerticalAlignment(int alignment)
Set the vertical alignment of the component within the specified area.
|
void | setVerticalStretch(boolean stretch)
Set whether or not this component can be stretched vertically. |
String | toString()
Return a string representation of this object. |
Parameters: row The starting row. column The starting column.
Parameters: fieldName The name of the field to check fieldValue The value of the field to check
Throws: DetailedNullPointerException If fieldValue is null
Throws: IllegalArgumentException If the object is immutable
Returns: The column.
Returns: the column span.
Returns: Return the horizontalAlignment.
Returns: Return true if this component can be stretched horizontally.
Returns: Return true if we are obeying the maximum size.
Returns: Return true if we are obeying the minimum size.
Returns: The row.
Returns: The row span.
Returns: Return the vertical alignment.
Returns: Return true if this component can be stretched vertically.
Returns: Return true if this object is immutable.
Parameters: constraintString The constraints string.
Returns: A new TableLayoutConstraints object.
Parameters: constraints The new constraints object constraintString The constraints as an input string isRow true if these constraints are for a row
Parameters: column The new column.
Parameters: span The new span.
Parameters: alignment The new alignment.
Parameters: stretch true if the component will stretch horizontally.
Parameters: obey true if we are to obey the maximum size.
Parameters: obey true if we are to obey the minimum size.
Parameters: row The row.
Parameters: span The new row span.
Parameters: alignment The new alignment.
Parameters: stretch true if the component will stretch vertically.
Returns: Return a string representation of this object.