javax.swing
public static class SpringLayout.Constraints extends Object
Constructor Summary | |
---|---|
Constraints()
Creates a new Constraints object.
| |
Constraints(Spring x, Spring y)
Creates a new Constraints object.
| |
Constraints(Spring x, Spring y, Spring width, Spring height)
Creates a new Constraints object.
| |
Constraints(Component component)
Create a new Constraints object which tracks the indicated
component. |
Method Summary | |
---|---|
void | dropCalcResult() |
Spring | getConstraint(String edgeName)
Returns the constraint for the edge with the edgeName .
|
Spring | getEast()
Returns the constraint for the right edge of the component.
|
Spring | getHeight()
Returns the constraint for the height of the component.
|
Spring | getSouth()
Returns the constraint for the lower edge of the component.
|
Spring | getWidth()
Returns the constraint for the width of the component.
|
Spring | getX()
Returns the constraint for the left edge of the component.
|
Spring | getY()
Returns the constraint for the upper edge of the component.
|
void | setConstraint(String edgeName, Spring s)
Sets a constraint for the specified edge. |
void | setEast(Spring s)
Sets the EAST-constraint.
|
void | setHeight(Spring s)
Sets the height-constraint.
|
void | setSouth(Spring s)
Sets the SOUTH-constraint.
|
void | setWidth(Spring s)
Sets the width-constraint.
|
void | setX(Spring s)
Sets the WEST-constraint.
|
void | setY(Spring s)
Sets the NORTH-constraint.
|
Parameters: x the constraint for the left edge of the component. y the constraint for the upper edge of the component.
Parameters: x the constraint for the left edge of the component. y the constraint for the upper edge of the component. width the constraint for the width of the component. height the constraint for the height of the component.
Parameters: component the component to track
Since: 1.5
edgeName
.
This is expected to be one of
{@link #EAST}, {@link #WEST}, {@link #NORTH} or {@link #SOUTH}.
Parameters: edgeName the name of the edge.
Returns: the constraint for the specified edge.
Returns: the right-edge constraint (== EAST).
Returns: the height constraint.
Returns: the lower-edge constraint (== SOUTH).
Returns: the width constraint.
Returns: the left-edge constraint (== WEST).
Returns: the upper-edge constraint (== NORTH).
Parameters: edgeName the name of the edge, one of {@link #EAST}, {@link #WEST}, {@link #NORTH} or {@link #SOUTH}. s the constraint to be set.
Parameters: s the constraint to be set.
Parameters: s the constraint to be set.
Parameters: s the constraint to be set.
Parameters: s the constraint to be set.
Parameters: s the constraint to be set.
Parameters: s the constraint to be set.