|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWidgetContainer
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(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(ValueChangedEvent ev)
|
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(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)
public int getChildCount()
public java.util.Collection getChildren()
public void layoutChildren()
public void remove(Widget widget)
public void removeAll()
public java.awt.Dimension getMinimumSize()
public java.awt.Dimension getPreferredSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |