info.clearthought.layout

Class TableLayout.Entry

Enclosing Class:
TableLayout
Implemented Interfaces:
Cloneable

public static class TableLayout.Entry
extends java.lang.Object
implements Cloneable

Field Summary

int[]
alignment
Horizontal and vertical alignment
Component
component
Component bound by the constraints
int[]
cr1
Cell in which the upper-left corner of the component lies
int[]
cr2
Cell in which the lower-right corner of the component lies

Constructor Summary

Entry(Component component, TableLayoutConstraints constraint)
Constructs an Entry that binds a component to a set of constraints.

Method Summary

Object
copy()
Copies this Entry.
String
toString()
Gets the string representation of this Entry.

Field Details

alignment

public int[] alignment
Horizontal and vertical alignment

component

public Component component
Component bound by the constraints

cr1

public int[] cr1
Cell in which the upper-left corner of the component lies

cr2

public int[] cr2
Cell in which the lower-right corner of the component lies

Constructor Details

Entry

public Entry(Component component,
             TableLayoutConstraints constraint)
Constructs an Entry that binds a component to a set of constraints.
Parameters:
component - component being bound
constraint - constraints being applied

Method Details

copy

public Object copy()
            throws CloneNotSupportedException
Copies this Entry.

toString

public String toString()
Gets the string representation of this Entry.
Returns:
a string in the form "(col1, row1, col2, row2, vAlign, hAlign) component"