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 classstatic classNested 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 DiscreteParameterbooleanfinal StringParameterfinal ObjectParameter<T> Fields inherited from class heronarts.lx.parameter.AggregateParameter
subparametersFields inherited from class heronarts.lx.parameter.LXListenableParameter
descriptionFields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Invoked when the parameter is done being used and none of its resources are needed anymore.protected abstract Stringprotected abstract T[]protected voidSubclasses should update the main parameter value when a sub-parameter has changedprotected static voidupdateInputs(List<LXMidiInput> inputs) protected static voidupdateOutputs(List<LXMidiOutput> outputs) protected voidupdateSubparameters(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, updateValueMethods 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, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface heronarts.lx.parameter.LXParameter
getBaseValue, getBaseValuef, getValuefMethods 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:AggregateParameterSubclasses should update the subparameter values based upon the raw parameter value if it has been set directly.- Specified by:
updateSubparametersin classAggregateParameter
-
onSubparameterUpdate
Description copied from class:AggregateParameterSubclasses should update the main parameter value when a sub-parameter has changed- Specified by:
onSubparameterUpdatein classAggregateParameter- Parameters:
p- Subparameter that has changed
-
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 classAggregateParameter
-