Package heronarts.lx.parameter
Class ObjectParameter<T>
java.lang.Object
heronarts.lx.parameter.LXListenableParameter
heronarts.lx.parameter.LXListenableNormalizedParameter
heronarts.lx.parameter.DiscreteParameter
heronarts.lx.parameter.ObjectParameter<T>
- All Implemented Interfaces:
LXPath,LXNormalizedParameter,LXParameter
- Direct Known Subclasses:
EnumParameter,LXViewEngine.Selector,SoundObject.Selector
-
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
Fields 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
ConstructorsConstructorDescriptionObjectParameter(String label, T[] objects) ObjectParameter(String label, T[] objects, String[] options) ObjectParameter(String label, T[] objects, T value) ObjectParameter(String label, T[] objects, T value, String[] options) -
Method Summary
Modifier and TypeMethodDescriptionT[]setDescription(String description) setIncrementMode(DiscreteParameter.IncrementMode incrementMode) setMappable(boolean mappable) Sets whether this parameter should be eligible for MIDI/modulation mapping or not.setObjects(T[] objects) Set a list of objects for the parametersetObjects(T[] objects, String[] options) setRange(int minValue, long maxValue) Sets the range from [minValue, maxValue-1] inclusivesetWrappable(boolean wrappable) Methods inherited from class heronarts.lx.parameter.DiscreteParameter
decrement, decrement, decrement, decrement, getBaseIndex, getBaseOption, getBaseValuei, getIncrementMode, getIndex, getMaxValue, getMinValue, getNormalized, getOption, getOption, getOptions, getRange, getRangei, getValueFromNormalized, getValuei, increment, increment, increment, increment, normalizedToValue, setFormatter, setFormatter, setIndex, setNormalized, setOptions, setOptions, setOptions, setRange, setRange, setUnits, updateValueMethods inherited from class heronarts.lx.parameter.LXListenableNormalizedParameter
getExponent, getNormalizedWithModulation, getOscMode, incrementNormalized, incrementNormalized, isWrappable, setExponent, setOscModeMethods inherited from class heronarts.lx.parameter.LXListenableParameter
addListener, addListener, bang, dispose, getDescription, getFormatter, getLabel, getParent, getParentParameter, getPath, getPolarity, getUnits, getValue, 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.LXNormalizedParameter
getBaseNormalized, getBaseNormalizedf, getNormalizedfMethods inherited from interface heronarts.lx.parameter.LXParameter
dispose, getBaseValue, getBaseValuef, getFormatter, getLabel, getParentParameter, getPolarity, getUnits, getValue, getValuef, isMappable, reset, setComponent, setValueMethods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getDescription, getParent, getPath, isDescendant
-
Constructor Details
-
ObjectParameter
-
ObjectParameter
-
ObjectParameter
-
ObjectParameter
-
-
Method Details
-
setDescription
- Overrides:
setDescriptionin classDiscreteParameter
-
setIncrementMode
- Overrides:
setIncrementModein classDiscreteParameter
-
setMappable
Description copied from interface:LXParameterSets whether this parameter should be eligible for MIDI/modulation mapping or not.- Specified by:
setMappablein interfaceLXParameter- Overrides:
setMappablein classDiscreteParameter- Parameters:
mappable- Whether parameter should be available for mapping- Returns:
- this
-
setWrappable
- Overrides:
setWrappablein classDiscreteParameter
-
setObjects
Set a list of objects for the parameter- Parameters:
objects- Array of arbitrary object values- Returns:
- this
-
setObjects
-
setRange
Description copied from class:DiscreteParameterSets the range from [minValue, maxValue-1] inclusive- Overrides:
setRangein classDiscreteParameter- Parameters:
minValue- Minimum valuemaxValue- Maximum value, exclusive- Returns:
- this
-
setValue
-
getObjects
-
getBaseObject
-
getObject
-