Lines Matching defs:pref
235 protected int pref;
238 public StaticSpring(int pref) {
239 this(pref, pref, pref);
242 public StaticSpring(int min, int pref, int max) {
244 this.pref = pref;
249 return "StaticSpring [" + min + ", " + pref + ", " + max + "]";
257 return pref;
441 min = pref = max = UNSET;
456 if (pref == UNSET) {
457 pref = op(s1.getPreferredValue(), s2.getPreferredValue());
459 return pref;
516 * <em>maximum</em> values each have the value <code>pref</code>.
518 * @param pref the <em>minimum</em>, <em>preferred</em>, and
521 * <em>maximum</em> values each have the value <code>pref</code>
525 public static Spring constant(int pref) {
526 return constant(pref, pref, pref);
531 * <em>maximum</em> values have the values: <code>min</code>, <code>pref</code>,
535 * @param pref the <em>preferred</em> value of the new spring
538 * <em>maximum</em> values have the values: <code>min</code>, <code>pref</code>,
543 public static Spring constant(int min, int pref, int max) {
544 return new StaticSpring(min, pref, max);
566 * value - pref
568 * pref - min
572 * value - pref
574 * max - pref