|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRowContainer
artofillusion.ui.ValueSelector
public class ValueSelector
This class is used for selecting a numeric value within a (possibly unbounded) range. The user may edit the value either by typing into a text field, or by clicking and dragging on an "adjuster" Widget. This class is similar to JSlider, but it can be used when the permitted values are not restricted to a finite range.
Constructor Summary | |
---|---|
ValueSelector(double value,
double min,
double max,
double increment)
Create a ValueSelector. |
Method Summary | |
---|---|
double |
getMaximumValue()
Get the maximum allowed value. |
double |
getMinimumValue()
Get the minimum allowed value. |
double |
getValue()
Get the current value. |
void |
setEnabled(boolean enabled)
|
void |
setMaximumValue(double max)
Set the maximum allowed value. |
void |
setMinimumValue(double min)
Set the minimum allowed value. |
void |
setValue(double value)
Set the current value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueSelector(double value, double min, double max, double increment)
value
- the initial valuemin
- the minimum legal value. Specify Double.NEGATIVE_INFINITY if the range
is not bounded from below.max
- the maximum legal value. Specify Double.POSITIVE_INFINITY if the range
is not bounded from above.increment
- the amount by which the value should change for each pixel the mouse is
moved after clicking on the adjustor WidgetMethod Detail |
---|
public double getValue()
public void setValue(double value)
public double getMinimumValue()
public void setMinimumValue(double min)
public double getMaximumValue()
public void setMaximumValue(double max)
public void setEnabled(boolean enabled)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |