javax.swing
Class Spring.AbstractSpring

java.lang.Object
  extended byjavax.swing.Spring
      extended byjavax.swing.Spring.AbstractSpring
Direct Known Subclasses:
Spring.StaticSpring, SpringLayout.HeightSpring, SpringLayout.WidthSpring
Enclosing class:
Spring

abstract static class Spring.AbstractSpring
extends Spring


Nested Class Summary
 
Nested classes inherited from class javax.swing.Spring
Spring.AbstractSpring, Spring.CompoundSpring
 
Field Summary
protected  int size
           
 
Fields inherited from class javax.swing.Spring
UNSET
 
Constructor Summary
(package private) Spring.AbstractSpring()
           
 
Method Summary
protected  void clear()
           
 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 javax.swing.Spring
constant, constant, difference, getMaximumValue, getMinimumValue, getPreferredValue, getStrain, isCyclic, max, minus, setStrain, sum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size
Constructor Detail

Spring.AbstractSpring

Spring.AbstractSpring()
Method Detail

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