Main Page | Namespace List | Class Hierarchy | Class List | Class Members | Related Pages

layout::TableLayoutConstraints Class Reference

Inheritance diagram for layout::TableLayoutConstraints:

Inheritance graph
[legend]
Collaboration diagram for layout::TableLayoutConstraints:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TableLayoutConstraints ()
 TableLayoutConstraints (String constraints)
 TableLayoutConstraints (int col1, int row1, int col2, int row2, int hAlign, int vAlign)
String toString ()

Public Attributes

int col1
int row1
int col2
int row2
int hAlign
int vAlign

Static Public Attributes

double ABCD = TableLayoutConstraints.FILL

Detailed Description

The following inner class is used to bind components to their constraints.

Author:
Daniel E. Barbalace


Constructor & Destructor Documentation

layout::TableLayoutConstraints::TableLayoutConstraints  )  [inline]
 

Constructs an TableLayoutConstraints with the default settings. This constructor is equivalent to TableLayoutConstraints(0, 0, 0, 0, FULL, FULL).

layout::TableLayoutConstraints::TableLayoutConstraints String  constraints  )  [inline]
 

Constructs an TableLayoutConstraints from a string.

Parameters:
constraints indicates TableLayoutConstraints's position and justification as a string in the form "row, column" or "row, column, horizontal justification, vertical justification" or "row 1, column 1, row 2, column 2". It is also acceptable to delimit the paramters with spaces instead of commas.

layout::TableLayoutConstraints::TableLayoutConstraints int  col1,
int  row1,
int  col2,
int  row2,
int  hAlign,
int  vAlign
[inline]
 

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


Member Function Documentation

String layout::TableLayoutConstraints::toString  )  [inline]
 

Gets a string representation of this TableLayoutConstraints.

Returns:
a string in the form "row 1, column 1, row 2, column 2" or "row, column, horizontal justification, vertical justification"


Member Data Documentation

int layout::TableLayoutConstraints::col1
 

Cell in which the upper left corner of the component lays

int layout::TableLayoutConstraints::col2
 

Cell in which the lower right corner of the component lays

int layout::TableLayoutConstraints::hAlign
 

Horizontal justification if component occupies just one cell

int layout::TableLayoutConstraints::row1
 

Cell in which the upper left corner of the component lays

int layout::TableLayoutConstraints::row2
 

Cell in which the lower right corner of the component lays

int layout::TableLayoutConstraints::vAlign
 

Verical justification if component occupies just one cell


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 17:03:05 2005 by  doxygen 1.3.9.1