javax.swing
Class Spring.SumSpring
java.lang.Object
javax.swing.Spring
javax.swing.Spring.AbstractSpring
javax.swing.Spring.StaticSpring
javax.swing.Spring.CompoundSpring
javax.swing.Spring.SumSpring
- Enclosing class:
- Spring
- private static class Spring.SumSpring
- extends Spring.CompoundSpring
s1
protected Spring s1
s2
protected Spring s2
min
protected int min
pref
protected int pref
max
protected int max
size
protected int size
Spring.SumSpring
public Spring.SumSpring(Spring s1,
Spring s2)
op
protected int op(int x,
int y)
- Specified by:
op
in class Spring.CompoundSpring
setValue
public void setValue(int size)
- Description copied from class:
Spring
- Sets the current value of this
Spring
to value
.
- Overrides:
setValue
in class Spring.CompoundSpring
toString
public String toString()
- Description copied from class:
Object
- Returns a string representation of the object. In general, the
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
- Overrides:
toString
in class Spring.StaticSpring
clear
protected void clear()
- Overrides:
clear
in class Spring.AbstractSpring
getMinimumValue
public int getMinimumValue()
- Description copied from class:
Spring
- Returns the minimum value of this
Spring
.
- Overrides:
getMinimumValue
in class Spring.StaticSpring
getPreferredValue
public int getPreferredValue()
- Description copied from class:
Spring
- Returns the preferred value of this
Spring
.
- Overrides:
getPreferredValue
in class Spring.StaticSpring
getMaximumValue
public int getMaximumValue()
- Description copied from class:
Spring
- Returns the maximum value of this
Spring
.
- Overrides:
getMaximumValue
in class Spring.StaticSpring
getValue
public int getValue()
- Description copied from class:
Spring
- Returns the current value of this
Spring
.
- Overrides:
getValue
in class Spring.AbstractSpring
isCyclic
boolean isCyclic(SpringLayout l)
- Overrides:
isCyclic
in class Spring