Package heronarts.lx.parameter
Class MutableParameter
java.lang.Object
heronarts.lx.parameter.LXListenableParameter
heronarts.lx.parameter.MutableParameter
- All Implemented Interfaces:
LXPath,LXParameter
- Direct Known Subclasses:
LXClipEngine.FocusedClipParameter
A MutableParameter is a parameter that has a value which can be changed to anything.
-
Nested Class Summary
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
descriptionFields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH -
Constructor Summary
ConstructorsConstructorDescriptionMutableParameter(double value) MutableParameter(String label) MutableParameter(String label, double value) -
Method Summary
Modifier and TypeMethodDescriptionintsetDescription(String description) setFormatter(LXParameter.Formatter formatter) Sets the formatter used for printing this parameter's valuesetMappable(boolean mappable) Sets whether this parameter should be eligible for MIDI/modulation mapping or not.setMaximum(double maximum) setMinimum(double minimum) setPolarity(LXParameter.Polarity polarity) setUnits(LXParameter.Units units) protected doubleupdateValue(double value) Invoked when the value has changed.Methods 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, 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
-
Constructor Details
-
MutableParameter
public MutableParameter() -
MutableParameter
-
MutableParameter
-
MutableParameter
public MutableParameter(double value)
-
-
Method Details
-
increment
-
decrement
-
setMinimum
-
setMaximum
-
setDescription
- Overrides:
setDescriptionin classLXListenableParameter
-
setFormatter
Description copied from interface:LXParameterSets the formatter used for printing this parameter's value- Specified by:
setFormatterin interfaceLXParameter- Overrides:
setFormatterin classLXListenableParameter- Parameters:
formatter- Formatter- Returns:
- The parameter
-
setMappable
Description copied from interface:LXParameterSets whether this parameter should be eligible for MIDI/modulation mapping or not.- Specified by:
setMappablein interfaceLXParameter- Overrides:
setMappablein classLXListenableParameter- Parameters:
mappable- Whether parameter should be available for mapping- Returns:
- this
-
setPolarity
- Overrides:
setPolarityin classLXListenableParameter
-
setUnits
- Overrides:
setUnitsin classLXListenableParameter
-
updateValue
protected double updateValue(double value) Description copied from class:LXListenableParameterInvoked when the value has changed. Subclasses should update any special internal state according to this new value.- Specified by:
updateValuein classLXListenableParameter- Parameters:
value- New value- Returns:
- this
-
getValuei
public int getValuei()
-