javax.swing
Class SpringLayout.WidthSpring
java.lang.Object
javax.swing.Spring
javax.swing.Spring.AbstractSpring
javax.swing.SpringLayout.WidthSpring
- Enclosing class:
- SpringLayout
- private static class SpringLayout.WidthSpring
- extends Spring.AbstractSpring
Method Summary |
protected void |
clear()
|
int |
getMaximumValue()
Returns the maximum value of this Spring . |
int |
getMinimumValue()
Returns the minimum value of this Spring . |
int |
getPreferredValue()
Returns the preferred value of this Spring . |
int |
getValue()
Returns the current value of this Spring . |
void |
setValue(int size)
Sets the current value of this Spring to value . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
c
private Component c
size
protected int size
SpringLayout.WidthSpring
public SpringLayout.WidthSpring(Component c)
getMinimumValue
public int getMinimumValue()
- Description copied from class:
Spring
- Returns the minimum value of this
Spring
.
- Specified by:
getMinimumValue
in class Spring
- Returns:
- the
minimumValue
property of this Spring
getPreferredValue
public int getPreferredValue()
- Description copied from class:
Spring
- Returns the preferred value of this
Spring
.
- Specified by:
getPreferredValue
in class Spring
- Returns:
- the
preferredValue
of this Spring
getMaximumValue
public int getMaximumValue()
- Description copied from class:
Spring
- Returns the maximum value of this
Spring
.
- Specified by:
getMaximumValue
in class Spring
- Returns:
- the
maximumValue
property of this Spring
getValue
public int getValue()
- Description copied from class:
Spring
- Returns the current value of this
Spring
.
- Specified by:
getValue
in class Spring
- Returns:
- the
value
property of this Spring
- See Also:
Spring.setValue(int)
setValue
public void setValue(int size)
- Description copied from class:
Spring
- Sets the current value of this
Spring
to value
.
- Specified by:
setValue
in class Spring
- Parameters:
size
- the new setting of the value
property- See Also:
Spring.getValue()
clear
protected void clear()