API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. Spring View Source
Author(s)
Philip Milne
Since
1.4
Version
1.13 11/17/05
Serial
Hierarchy
 Object
      Spring
Implements
Subclasses
Description
publicabstract abstract class Spring
  An instance of the Spring class holds three properties that characterize its behavior: the minimum, preferred, and maximum values.
Constructors
protected Spring ()
  Used by factory methods to create a Spring.
Methods
Hide/Show inherited methods
publicstatic Spring constant (int pref)
  Returns a strut -- a spring whose minimum, preferred, and maximum values each have the value pref.
publicstatic 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.
pack-privatestatic Spring difference (Spring s1, Spring s2)
publicabstract int getMaximumValue ()
  Returns the maximum value of this Spring.
publicabstract int getMinimumValue ()
  Returns the minimum value of this Spring.
publicabstract int getPreferredValue ()
  Returns the preferred value of this Spring.
pack-private double getStrain ()
publicabstract int getValue ()
  Returns the current value of this Spring.
publicstatic Spring height (Component c)
  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.
pack-private boolean isCyclic (SpringLayout l)
publicstatic Spring max (Spring s1, Spring s2)
  Returns max(s1, s2): a spring whose value is always greater than (or equal to) the values of both s1 and s2.
publicstatic Spring minus (Spring s)
  Returns -s: a spring running in the opposite direction to s.
publicstatic Spring scale (Spring s, float factor)
  Returns a spring whose minimum, preferred, maximum and value properties are each multiples of the properties of the argument spring, s.
pack-private void setStrain (double strain)
publicabstract void setValue (int value)
  Sets the current value of this Spring to value.
publicstatic Spring sum (Spring s1, Spring s2)
  Returns s1+s2: a spring representing s1 and s2 in series.
publicstatic Spring width (Component c)
  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.
Fields
Hide/Show inherited fields
publicfinalstatic int UNSET = "-2147483648"
An integer value signifying that a property value has not yet been calculated.
Nested Classes
  Spring.AbstractSpring
  Spring.WidthSpring
  Spring.HeightSpring
  Spring.SpringMap
  Spring.CompoundSpring
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar