|
||||||||||
| 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
artofillusion.ui.ValueSlider
public class ValueSlider
A ValueSlider contains a BTextField and a BSlider which are together used for choosing a value. Editing either one causes the other to change automatically. If an illegal value is entered into the BTextField, the text turns red to indicate this.
| Constructor Summary | |
|---|---|
ValueSlider(double min,
double max,
int increments,
double value)
|
|
| Method Summary | |
|---|---|
int |
getChildCount()
Get the number of children in this container. |
java.util.Collection |
getChildren()
Get an Iterator listing all child Widgets. |
double |
getMaximumValue()
Get the maximum allowed value. |
java.awt.Dimension |
getMinimumSize()
Get the smallest size at which this Widget can reasonably be drawn. |
double |
getMinimumValue()
Get the minimum allowed value. |
java.awt.Dimension |
getPreferredSize()
Get the preferred size at which this Widget will look best. |
double |
getValue()
|
void |
layoutChildren()
Layout the child Widgets. |
void |
remove(buoy.widget.Widget widget)
Do not allow children to be removed. |
void |
removeAll()
Do not allow children to be removed. |
void |
setEnabled(boolean enabled)
|
void |
setForceInteger(boolean force)
|
void |
setMaximumValue(double max)
Set the maximum allowed value. |
void |
setMinimumValue(double min)
Set the minimum allowed value. |
void |
setValue(double val)
|
void |
textChanged(buoy.event.ValueChangedEvent ev)
|
| Methods inherited from class buoy.widget.WidgetContainer |
|---|
isOpaque, setOpaque |
| Methods inherited from class buoy.widget.Widget |
|---|
addEventLink, dispatchEvent, getBackground, getBounds, getComponent, 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 ValueSlider(double min,
double max,
int increments,
double value)
| Method Detail |
|---|
public void setForceInteger(boolean force)
public void textChanged(buoy.event.ValueChangedEvent ev)
public double getValue()
public void setValue(double val)
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.Widgetpublic int getChildCount()
getChildCount in class buoy.widget.WidgetContainerpublic java.util.Collection getChildren()
getChildren in class buoy.widget.WidgetContainerpublic void layoutChildren()
layoutChildren in class buoy.widget.WidgetContainerpublic void remove(buoy.widget.Widget widget)
remove in class buoy.widget.WidgetContainerpublic void removeAll()
removeAll in class buoy.widget.WidgetContainerpublic java.awt.Dimension getMinimumSize()
getMinimumSize in class buoy.widget.Widgetpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class buoy.widget.Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||