public class BooleanParameter extends LXListenableNormalizedParameter
Modifier and Type | Class and Description |
---|---|
static class |
BooleanParameter.Mode |
LXParameter.Formatter, LXParameter.Polarity, LXParameter.Units
description
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, setMappable
addListener, bang, dispose, getDescription, getFormatter, getLabel, getParent, getPath, getPolarity, getUnits, getValue, getValuef, incrementValue, removeListener, reset, reset, setComponent, setFormatter, setPolarity, setUnits, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getDescription, getFormatter, getLabel, getPolarity, getUnits, getValue, getValuef, reset, setComponent, setValue
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter, getParent, getPath
public BooleanParameter(String label)
public BooleanParameter(String label, boolean on)
public BooleanParameter setDescription(String description)
setDescription
in class LXListenableParameter
public 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)
LXListenableParameter
updateValue
in class LXListenableParameter
value
- New valuepublic double getNormalized()
LXNormalizedParameter
public float getNormalizedf()
LXNormalizedParameter
public BooleanParameter setNormalized(double normalized)
LXNormalizedParameter
normalized
- The normalized value, from 0 to 1LX library by Mark C. Slee. © 2012-2020