Package heronarts.lx.midi
Class MidiSelector<T extends LXMidiTerminal>
java.lang.Object
heronarts.lx.parameter.LXListenableParameter
heronarts.lx.parameter.AggregateParameter
heronarts.lx.midi.MidiSelector<T>
- All Implemented Interfaces:
LXPath
,LXParameter
- Direct Known Subclasses:
MidiSelector.Destination
,MidiSelector.Source
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface heronarts.lx.parameter.LXParameter
LXParameter.Collection, LXParameter.Formatter, LXParameter.Monitor, LXParameter.MultiMonitor, LXParameter.Polarity, LXParameter.Units
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal DiscreteParameter
boolean
final StringParameter
final ObjectParameter
<T> Fields inherited from class heronarts.lx.parameter.AggregateParameter
subparameters
Fields inherited from class heronarts.lx.parameter.LXListenableParameter
description
Fields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Invoked when the parameter is done being used and none of its resources are needed anymore.protected abstract String
protected abstract T[]
protected void
Subclasses should update the main parameter value when a sub-parameter has changedprotected static void
updateInputs
(List<LXMidiInput> inputs) protected static void
updateOutputs
(List<LXMidiOutput> outputs) protected void
updateSubparameters
(double value) Subclasses should update the subparameter values based upon the raw parameter value if it has been set directly.Methods inherited from class heronarts.lx.parameter.AggregateParameter
addSubparameter, getRemoteControl, onUpdateValue, updateValue
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, setDescription, setFormatter, setMappable, setPolarity, setUnits, 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.LXParameter
getBaseValue, getBaseValuef, getValuef
Methods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
name
-
index
-
terminal
-
missingDevice
public boolean missingDevice
-
-
Constructor Details
-
MidiSelector
-
-
Method Details
-
updateInputs
-
updateOutputs
-
getMidiLabel
-
getMidiTerminals
-
updateSubparameters
protected void updateSubparameters(double value) Description copied from class:AggregateParameter
Subclasses should update the subparameter values based upon the raw parameter value if it has been set directly.- Specified by:
updateSubparameters
in classAggregateParameter
-
onSubparameterUpdate
Description copied from class:AggregateParameter
Subclasses should update the main parameter value when a sub-parameter has changed- Specified by:
onSubparameterUpdate
in classAggregateParameter
- Parameters:
p
- Subparameter that has changed
-
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 classAggregateParameter
-