Lines Matching defs:Spring

30  *  An instance of the <code>Spring</code> class holds three properties that
35 * An instance of the <code>Spring</code> class can be visualized as a
47 * <code>Spring</code> can be extended.
51 * By defining simple arithmetic operations on <code>Spring</code>s,
52 * the behavior of a collection of <code>Spring</code>s
53 * can be reduced to that of an ordinary (non-compound) <code>Spring</code>. We define
55 * <code>Spring</code>s so that, in each case, the result is a <code>Spring</code>
60 * A <code>Spring</code> can be treated as a pair of intervals
78 * If we denote <code>Spring</code>s as <code>[a, b, c]</code>,
80 * arithmetic operators on <code>Spring</code>s:
90 * With both intervals and <code>Spring</code>s we can define "-" and <em>min</em>
103 * create a new <code>Spring</code> instance containing references to
130 public abstract class Spring {
138 * Used by factory methods to create a <code>Spring</code>.
147 protected Spring() {}
150 * Returns the <em>minimum</em> value of this <code>Spring</code>.
152 * @return the <code>minimumValue</code> property of this <code>Spring</code>
157 * Returns the <em>preferred</em> value of this <code>Spring</code>.
159 * @return the <code>preferredValue</code> of this <code>Spring</code>
164 * Returns the <em>maximum</em> value of this <code>Spring</code>.
166 * @return the <code>maximumValue</code> property of this <code>Spring</code>
171 * Returns the current <em>value</em> of this <code>Spring</code>.
173 * @return the <code>value</code> property of this <code>Spring</code>
180 * Sets the current <em>value</em> of this <code>Spring</code> to <code>value</code>.
206 /*pp*/ static abstract class AbstractSpring extends Spring {
265 private static class NegativeSpring extends Spring {
266 private Spring s;
268 public NegativeSpring(Spring s) {
302 private static class ScaleSpring extends Spring {
303 private Spring s;
306 private ScaleSpring(Spring s, float factor) {
383 /*pp*/ static abstract class SpringMap extends Spring {
384 private Spring s;
386 public SpringMap(Spring s) {
426 protected Spring s1;
427 protected Spring s2;
429 public CompoundSpring(Spring s1, Spring s2) {
482 public SumSpring(Spring s1, Spring s2) {
499 public MaxSpring(Spring s1, Spring s2) {
523 * @see Spring
525 public static Spring constant(int pref) {
541 * @see Spring
543 public static Spring constant(int min, int pref, int max) {
553 * @see Spring
555 public static Spring minus(Spring s) {
586 * @see Spring
588 public static Spring sum(Spring s1, Spring s2) {
598 * @see Spring
600 public static Spring max(Spring s1, Spring s2) {
607 /*pp*/ static Spring difference(Spring s1, Spring s2) {
612 public static Spring min(Spring s1, Spring s2) {
635 public static Spring scale(Spring s, float factor) {
656 public static Spring width(Component c) {
677 public static Spring height(Component c) {