|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbuoy.event.EventSource
buoy.widget.Widget
buoy.widget.WidgetContainer
buoy.widget.RowContainer
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 buoy.widget.RowContainer |
|---|
add, add, add, getChild, getChildCount, getChildIndex, getChildLayout, getChildLayout, getChildren, getComponent, getDefaultLayout, getMinimumSize, getPreferredSize, layoutChildren, remove, remove, removeAll, setChildLayout, setChildLayout, setDefaultLayout |
| Methods inherited from class buoy.widget.WidgetContainer |
|---|
isOpaque, setOpaque |
| Methods inherited from class buoy.widget.Widget |
|---|
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getName, getParent, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setFocusable, setFont, setName, setVisible |
| Methods inherited from class buoy.event.EventSource |
|---|
addEventLink, addEventLink, removeEventLink |
| 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 Widget| Method 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)
setEnabled in class buoy.widget.Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||