Package heronarts.lx.parameter
Class CompoundEnumParameter<T extends Enum<T>>
- All Implemented Interfaces:
LXPath,LXCompoundModulation.Target,IEnumParameter<T>,LXNormalizedParameter,LXParameter
public class CompoundEnumParameter<T extends Enum<T>>
extends CompoundObjectParameter<T>
implements IEnumParameter<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.parameter.DiscreteParameter
DiscreteParameter.IncrementModeNested 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
FieldsFields inherited from class heronarts.lx.parameter.CompoundDiscreteParameter
modulationsFields inherited from class heronarts.lx.parameter.DiscreteParameter
maxValue, minValue, optionsChanged, rangeFields 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 TypeMethodDescriptionaddListener(LXParameterListener listener) getEnum()setDescription(String description) setMappable(boolean mappable) Sets whether this parameter should be eligible for MIDI/modulation mapping or not.Methods inherited from class heronarts.lx.parameter.CompoundObjectParameter
getBaseObject, getObject, getObjects, setObjects, setObjects, setRange, setValueMethods inherited from class heronarts.lx.parameter.CompoundDiscreteParameter
addModulation, addModulationListener, getBaseIndex, getBaseNormalized, getBaseValue, getBaseValuei, getModulations, getNormalized, getUIThreadModulations, getValue, removeModulation, removeModulationListener, setUnits, setWrappableMethods inherited from class heronarts.lx.parameter.DiscreteParameter
decrement, decrement, decrement, decrement, getBaseOption, getIncrementMode, getIndex, getMaxValue, getMinValue, getOption, getOption, getOptions, getRange, getRangei, getValueFromNormalized, getValuei, increment, increment, increment, increment, normalizedToValue, setFormatter, setFormatter, setIncrementMode, setIndex, setNormalized, setOptions, setOptions, setOptions, setRange, setRange, updateValueMethods inherited from class heronarts.lx.parameter.LXListenableNormalizedParameter
getExponent, getNormalizedWithModulation, getOscMode, incrementNormalized, incrementNormalized, isWrappable, setExponent, setOscModeMethods inherited from class heronarts.lx.parameter.LXListenableParameter
addListener, bang, dispose, getDescription, getFormatter, getLabel, getParent, getParentParameter, getPath, getPolarity, getUnits, incrementValue, isDefault, isMappable, removeListener, reset, reset, setComponent, 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.IEnumParameter
getBaseValuei, getValueiMethods inherited from interface heronarts.lx.parameter.LXNormalizedParameter
getBaseNormalizedf, getExponent, getNormalizedf, getOscMode, getValueFromNormalized, isWrappable, setNormalizedMethods inherited from interface heronarts.lx.parameter.LXParameter
dispose, 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
-
Field Details
-
enumClass
-
-
Constructor Details
-
CompoundEnumParameter
-
-
Method Details
-
setEnum
- Specified by:
setEnumin interfaceIEnumParameter<T extends Enum<T>>
-
setDescription
- Overrides:
setDescriptionin classCompoundObjectParameter<T extends Enum<T>>
-
setMappable
Description copied from interface:LXParameterSets whether this parameter should be eligible for MIDI/modulation mapping or not.- Specified by:
setMappablein interfaceLXParameter- Overrides:
setMappablein classCompoundDiscreteParameter- Parameters:
mappable- Whether parameter should be available for mapping- Returns:
- this
-
addListener
- Overrides:
addListenerin classLXListenableParameter
-
getEnum
- Specified by:
getEnumin interfaceIEnumParameter<T extends Enum<T>>
-
getBaseEnum
- Specified by:
getBaseEnumin interfaceIEnumParameter<T extends Enum<T>>
-