Methods Summary |
---|
public int | getMaximumValue()
return (int)Math.round(parent.getMaximumValue() * fraction);
|
public int | getMinimumValue()
return (int)Math.round(parent.getMinimumValue() * fraction);
|
public int | getPreferredValue()
return (int)Math.round(parent.getPreferredValue() * fraction);
|
public int | getValue()
return (int)Math.round(parent.getValue() * fraction);
|
public static FractionSpring | half(javax.swing.Spring s)
return new FractionSpring(s, 0.5);
|
public void | setValue(int val)
// Uncomment this next line to watch when our spring is resized:
// System.err.println("Value to setValue: " + val);
if (val == UNSET) {
return;
}
throw new UnsupportedOperationException(
"Cannot set value on a derived spring");
|