Package heronarts.lx.parameter
Class TriggerParameter
java.lang.Object
heronarts.lx.parameter.LXListenableParameter
heronarts.lx.parameter.LXListenableNormalizedParameter
heronarts.lx.parameter.BooleanParameter
heronarts.lx.parameter.TriggerParameter
- All Implemented Interfaces:
LXPath,LXNormalizedParameter,LXParameter
- Direct Known Subclasses:
QuantizedTriggerParameter
A boolean parameter which is momentary and supports instantaneous toggling
to true. Whenever the value is set to true the parameter listeners are fired,
and then the value is then immediately set back to false.
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.parameter.BooleanParameter
BooleanParameter.ModeNested classes/interfaces inherited from interface heronarts.lx.parameter.LXNormalizedParameter
LXNormalizedParameter.OscModeNested classes/interfaces inherited from interface heronarts.lx.parameter.LXParameter
LXParameter.Collection, LXParameter.Formatter, LXParameter.Monitor, LXParameter.MultiMonitor, LXParameter.Polarity, LXParameter.Units -
Field Summary
Fields inherited from class heronarts.lx.parameter.LXListenableParameter
descriptionFields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH -
Constructor Summary
ConstructorsConstructorDescriptionTriggerParameter(String label) TriggerParameter(String label, Runnable onTrigger) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddispose()Invoked when the parameter is done being used and none of its resources are needed anymore.setDescription(String description) setMappable(boolean mappable) Sets whether this parameter should be eligible for MIDI/modulation mapping or not.setMode(BooleanParameter.Mode mode) trigger()Methods inherited from class heronarts.lx.parameter.BooleanParameter
getMode, getNormalized, getNormalizedf, getTriggerSource, getValueb, isOn, setNormalized, setValue, toggle, updateValueMethods inherited from class heronarts.lx.parameter.LXListenableNormalizedParameter
getExponent, getNormalizedWithModulation, getOscMode, incrementNormalized, incrementNormalized, isWrappable, setExponent, setOscMode, setUnits, setWrappableMethods inherited from class heronarts.lx.parameter.LXListenableParameter
addListener, addListener, bang, getDescription, getFormatter, getLabel, getParent, getParentParameter, getPath, getPolarity, getUnits, getValue, incrementValue, isDefault, isMappable, removeListener, reset, reset, setComponent, setFormatter, setPolarity, setValue, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface heronarts.lx.parameter.LXNormalizedParameter
getBaseNormalized, getBaseNormalizedf, getValueFromNormalizedMethods inherited from interface heronarts.lx.parameter.LXParameter
getBaseValue, getBaseValuef, getFormatter, getLabel, getParentParameter, getPolarity, getUnits, getValue, getValuef, isMappable, reset, setComponent, setFormatter, setValueMethods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getDescription, getParent, getPath, isDescendant
-
Constructor Details
-
TriggerParameter
-
TriggerParameter
-
-
Method Details
-
setDescription
- Overrides:
setDescriptionin classBooleanParameter
-
setMappable
Description copied from interface:LXParameterSets whether this parameter should be eligible for MIDI/modulation mapping or not.- Specified by:
setMappablein interfaceLXParameter- Overrides:
setMappablein classBooleanParameter- Parameters:
mappable- Whether parameter should be available for mapping- Returns:
- this
-
_onTrigger
protected void _onTrigger() -
onTrigger
-
trigger
-
setMode
- Overrides:
setModein classBooleanParameter
-
dispose
public void dispose()Description copied from interface:LXParameterInvoked when the parameter is done being used and none of its resources are needed anymore.- Specified by:
disposein interfaceLXParameter- Overrides:
disposein classLXListenableParameter
-