| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| Modifier and Type | Method and Description |
|---|---|
static Spring |
Spring.constant(int pref)
Returns a strut -- a spring whose
minimum,
preferred, and
maximum values each have the value
pref.
|
static Spring |
Spring.constant(int min, int pref, int max)
Returns a spring whose
minimum,
preferred, and
maximum values have the values:
min,
pref, and
max respectively.
|
Spring |
SpringLayout.Constraints.getConstraint(String
Returns the value of the specified edge, which may be a derived value, or even
null.
|
Spring |
SpringLayout.getConstraint(String
Returns the spring controlling the distance between the specified edge of the component and the top or left edge of its parent.
|
Spring |
SpringLayout.Constraints.getHeight()
Returns the value of the
height property.
|
Spring |
SpringLayout.Constraints.getWidth()
Returns the value of the
width property.
|
Spring |
SpringLayout.Constraints.getX()
Returns the value of the
x property.
|
Spring |
SpringLayout.Constraints.getY()
Returns the value of the
y property.
|
static Spring |
Spring.height(Component
Returns a spring whose
minimum,
preferred,
maximum and
value properties are defined by the heights of the
minimumSize,
preferredSize,
maximumSize and
size properties of the supplied component.
|
static Spring |
Spring.max(Spring
Returns
max(s1, s2): a spring whose value is always greater than (or equal to) the values of both
s1 and
s2.
|
static Spring |
Spring.minus(Spring
Returns
-s: a spring running in the opposite direction to
s.
|
static Spring |
Spring.scale(Spring
Returns a spring whose
minimum,
preferred,
maximum and
value properties are each multiples of the properties of the argument spring,
s.
|
static Spring |
Spring.sum(Spring
Returns
s1+s2: a spring representing
s1 and
s2 in series.
|
static Spring |
Spring.width(Component
Returns a spring whose
minimum,
preferred,
maximum and
value properties are defined by the widths of the
minimumSize,
preferredSize,
maximumSize and
size properties of the supplied component.
|
| Modifier and Type | Method and Description |
|---|---|
static Spring |
Spring.max(Spring
Returns
max(s1, s2): a spring whose value is always greater than (or equal to) the values of both
s1 and
s2.
|
static Spring |
Spring.minus(Spring
Returns
-s: a spring running in the opposite direction to
s.
|
void |
SpringLayout.putConstraint(String
Links edge
e1 of component
c1 to edge
e2 of component
c2.
|
static Spring |
Spring.scale(Spring
Returns a spring whose
minimum,
preferred,
maximum and
value properties are each multiples of the properties of the argument spring,
s.
|
void |
SpringLayout.Constraints.setConstraint(String
Sets the spring controlling the specified edge.
|
void |
SpringLayout.Constraints.setHeight(Spring
Sets the
height property, which controls the height of a component.
|
void |
SpringLayout.Constraints.setWidth(Spring
Sets the
width property, which controls the width of a component.
|
void |
SpringLayout.Constraints.setX(Spring
Sets the
x property, which controls the
x value of a component's location.
|
void |
SpringLayout.Constraints.setY(Spring
Sets the
y property, which controls the
y value of a component's location.
|
static Spring |
Spring.sum(Spring
Returns
s1+s2: a spring representing
s1 and
s2 in series.
|
| Constructor and Description | |
|---|---|
Constraints(Spring
Creates a
Constraints object with the specified values for its
x and
y properties.
|
|
Constraints(Spring
Creates a
Constraints object with the specified values for its
x,
y,
width, and
height properties.
|