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
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.Mode
Nested classes/interfaces inherited from interface heronarts.lx.parameter.LXNormalizedParameter
LXNormalizedParameter.OscMode
Nested 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
description
Fields inherited from interface heronarts.lx.LXPath
ROOT, ROOT_PREFIX, ROOT_SLASH
-
Constructor Summary
ConstructorDescriptionTriggerParameter
(String label) TriggerParameter
(String label, Runnable onTrigger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Invoked when the parameter is done being used and none of its resources are needed anymore.setDescription
(String description) setMode
(BooleanParameter.Mode mode) trigger()
Methods inherited from class heronarts.lx.parameter.BooleanParameter
getMode, getNormalized, getNormalizedf, getValueb, isOn, setMappable, setNormalized, setValue, toggle, updateValue
Methods inherited from class heronarts.lx.parameter.LXListenableNormalizedParameter
getExponent, getNormalizedWithModulation, getOscMode, incrementNormalized, incrementNormalized, isWrappable, setExponent, setOscMode, setUnits, setWrappable
Methods 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, setValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface heronarts.lx.parameter.LXNormalizedParameter
getBaseNormalized, getBaseNormalizedf, getValueFromNormalized
Methods inherited from interface heronarts.lx.parameter.LXParameter
getBaseValue, getBaseValuef, getFormatter, getLabel, getParentParameter, getPolarity, getUnits, getValue, getValuef, isMappable, reset, setComponent, setFormatter, setValue
Methods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getDescription, getParent, getPath, isDescendant
-
Constructor Details
-
TriggerParameter
-
TriggerParameter
-
-
Method Details
-
setDescription
- Overrides:
setDescription
in classBooleanParameter
-
onTrigger
-
trigger
-
setMode
- Overrides:
setMode
in classBooleanParameter
-
dispose
public void dispose()Description copied from interface:LXParameter
Invoked when the parameter is done being used and none of its resources are needed anymore.- Specified by:
dispose
in interfaceLXParameter
- Overrides:
dispose
in classLXListenableParameter
-