javax.swing
Class Spring.StaticSpring

java.lang.Object
  extended byjavax.swing.Spring
      extended byjavax.swing.Spring.AbstractSpring
          extended byjavax.swing.Spring.StaticSpring
Direct Known Subclasses:
Spring.CompoundSpring
Enclosing class:
Spring

private static class Spring.StaticSpring
extends Spring.AbstractSpring


Nested Class Summary
 
Nested classes inherited from class javax.swing.Spring
Spring.AbstractSpring, Spring.CompoundSpring
 
Field Summary
protected  int max
           
protected  int min
           
protected  int pref
           
protected  int size
           
 
Fields inherited from class javax.swing.Spring
UNSET
 
Constructor Summary
Spring.StaticSpring()
           
Spring.StaticSpring(int pref)
           
Spring.StaticSpring(int min, int pref, int max)
           
 
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.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class javax.swing.Spring
constant, constant, difference, getStrain, isCyclic, max, minus, setStrain, sum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

min

protected int min

pref

protected int pref

max

protected int max

size

protected int size
Constructor Detail

Spring.StaticSpring

public Spring.StaticSpring()

Spring.StaticSpring

public Spring.StaticSpring(int pref)

Spring.StaticSpring

public Spring.StaticSpring(int min,
                           int pref,
                           int max)
Method Detail

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 Object
Returns:
a string representation of the object.

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()