| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Spring | |
|---|---|
| javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. | 
| Uses of Spring in javax.swing | 
|---|
| Methods in javax.swing that return Spring | |
|---|---|
| static Spring | Spring.constant(int pref)Returns a strut -- a spring whose minimum, preferred, and maximum values each have the value pref. | 
| static Spring | Spring.constant(int min,
         int pref,
         int max)Returns a spring whose minimum, preferred, and maximum values have the values: min,pref,
 andmaxrespectively. | 
|  Spring | SpringLayout.Constraints.getConstraint(String edgeName)Returns the value of the specified edge, which may be a derived value, or even null. | 
|  Spring | SpringLayout.getConstraint(String edgeName,
              Component c)Returns the spring controlling the distance between the specified edge of the component and the top or left edge of its parent. | 
|  Spring | SpringLayout.Constraints.getHeight()Returns the value of the heightproperty. | 
|  Spring | SpringLayout.Constraints.getWidth()Returns the value of the widthproperty. | 
|  Spring | SpringLayout.Constraints.getX()Returns the value of the xproperty. | 
|  Spring | SpringLayout.Constraints.getY()Returns the value of the yproperty. | 
| static Spring | 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. | 
| static Spring | Spring.max(Spring s1,
    Spring s2)Returns max(s1, s2): a spring whose value is always greater than (or equal to)
         the values of boths1ands2. | 
| static Spring | Spring.minus(Spring s)Returns -s: a spring running in the opposite direction tos. | 
| static Spring | 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. | 
| static Spring | Spring.sum(Spring s1,
    Spring s2)Returns s1+s2: a spring representings1ands2in series. | 
| static Spring | 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. | 
| Methods in javax.swing with parameters of type Spring | |
|---|---|
| static Spring | Spring.max(Spring s1,
    Spring s2)Returns max(s1, s2): a spring whose value is always greater than (or equal to)
         the values of boths1ands2. | 
| static Spring | Spring.minus(Spring s)Returns -s: a spring running in the opposite direction tos. | 
|  void | SpringLayout.putConstraint(String e1,
              Component c1,
              Spring s,
              String e2,
              Component c2)Links edge e1of componentc1to
 edgee2of componentc2. | 
| static Spring | 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. | 
|  void | SpringLayout.Constraints.setConstraint(String edgeName,
              Spring s)Sets the spring controlling the specified edge. | 
|  void | SpringLayout.Constraints.setHeight(Spring height)Sets the heightproperty,
 which controls the height of a component. | 
|  void | SpringLayout.Constraints.setWidth(Spring width)Sets the widthproperty,
 which controls the width of a component. | 
|  void | SpringLayout.Constraints.setX(Spring x)Sets the xproperty,
 which controls thexvalue
 of a component's location. | 
|  void | SpringLayout.Constraints.setY(Spring y)Sets the yproperty,
 which controls theyvalue
 of a component's location. | 
| static Spring | Spring.sum(Spring s1,
    Spring s2)Returns s1+s2: a spring representings1ands2in series. | 
| Constructors in javax.swing with parameters of type Spring | |
|---|---|
| SpringLayout.Constraints(Spring x,
                         Spring y)Creates a Constraintsobject with the
 specified values for itsxandyproperties. | |
| SpringLayout.Constraints(Spring x,
                         Spring y,
                         Spring width,
                         Spring height)Creates a Constraintsobject with the 
 specified values for itsx,y,width,
 andheightproperties. | |
| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.