public class BooleanParameter extends LXListenableNormalizedParameter
| Modifier and Type | Class and Description |
|---|---|
static class |
BooleanParameter.Mode |
LXParameter.Formatter, LXParameter.Polarity, LXParameter.Unitsdescription| Constructor and Description |
|---|
BooleanParameter(String label) |
BooleanParameter(String label,
boolean on) |
| Modifier and Type | Method and Description |
|---|---|
BooleanParameter.Mode |
getMode() |
double |
getNormalized()
Gets the value of the parameter in a normalized space from 0 to 1
|
float |
getNormalizedf()
Gets the value of the parameter in a normalized space as a float
|
boolean |
getValueb() |
boolean |
isOn() |
BooleanParameter |
setDescription(String description) |
BooleanParameter |
setMode(BooleanParameter.Mode mode) |
BooleanParameter |
setNormalized(double normalized)
Sets the value or the parameter in normalized space from 0 to 1
|
BooleanParameter |
setValue(boolean value) |
BooleanParameter |
toggle() |
protected double |
updateValue(double value)
Invoked when the value has changed.
|
getExponent, isMappable, setExponent, setMappableaddListener, bang, dispose, getDescription, getFormatter, getLabel, getParent, getPath, getPolarity, getUnits, getValue, getValuef, incrementValue, removeListener, reset, reset, setComponent, setFormatter, setPolarity, setUnits, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispose, getDescription, getFormatter, getLabel, getPolarity, getUnits, getValue, getValuef, reset, setComponent, setValueget, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter, getParent, getPathpublic BooleanParameter(String label)
public BooleanParameter(String label, boolean on)
public BooleanParameter setDescription(String description)
setDescription in class LXListenableParameterpublic BooleanParameter setMode(BooleanParameter.Mode mode)
public BooleanParameter.Mode getMode()
public boolean isOn()
public boolean getValueb()
public BooleanParameter setValue(boolean value)
public BooleanParameter toggle()
protected double updateValue(double value)
LXListenableParameterupdateValue in class LXListenableParametervalue - New valuepublic double getNormalized()
LXNormalizedParameterpublic float getNormalizedf()
LXNormalizedParameterpublic BooleanParameter setNormalized(double normalized)
LXNormalizedParameternormalized - The normalized value, from 0 to 1LX library by Mark C. Slee. © 2012-2020