| SpringConstraints |
|
typedict |
| |
SpringConstraints
objects are used by the
SpringLayout
layout manager to constrain its components.
A
SpringConstraints
object references any two of the components in the layout array
by means of the components' tags and then specifies
a constraining relationship between specific edges of those
components, where one component is considered the anchoring component
and the other is considered the dependent component in the relationship.
Note that one of the components can be the container component itself.
The fields in a
SpringConstraints
are:
| anchorcomp |
A
String
specifying the tag of the anchoring component in this constaining
relationship.
| | anchoredge |
An
int
constant specifying which specific edge of the anchoring component is
involved.
Recognized integer constants are:
XXX,
| | dependcomp |
A
String
specifying the tag of the dependent component in this constaining
relationship.
| | dependedge |
An
int
constant specifying which specific edge of the dependent component is
involved.
For a list of recornized values, refer to the
anchoredge
field description.
| | spring |
A
Number,
Array
or
String
that specifies how the dependent component is contrained with respect
to the anchor component.
A
Number
value indicates the preferred spacing between the component edges.
An
Array
value
provides minimum, preferred and maximum sizing values, in that order, for the spacing
between the component edges.
Values not supplied in the array default to the last supplied value in the array.
A
String
value provides the tag of a component whose
minimum, preferred and maximum sizes are used, dynamically, when
calculating the
spacing between the anchor and dependent components.
|
|
Yoix is a registered trademark of AT&T Inc.
|