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
description
Fields 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 TypeMethodDescriptionint
setDescription
(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 double
updateValue
(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, 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
-
Constructor Details
-
MutableParameter
public MutableParameter() -
MutableParameter
-
MutableParameter
-
MutableParameter
public MutableParameter(double value)
-
-
Method Details
-
increment
-
decrement
-
setMinimum
-
setMaximum
-
setDescription
- Overrides:
setDescription
in classLXListenableParameter
-
setFormatter
Description copied from interface:LXParameter
Sets the formatter used for printing this parameter's value- Specified by:
setFormatter
in interfaceLXParameter
- Overrides:
setFormatter
in classLXListenableParameter
- Parameters:
formatter
- Formatter- Returns:
- The parameter
-
setMappable
Description copied from interface:LXParameter
Sets whether this parameter should be eligible for MIDI/modulation mapping or not.- Specified by:
setMappable
in interfaceLXParameter
- Overrides:
setMappable
in classLXListenableParameter
- Parameters:
mappable
- Whether parameter should be available for mapping- Returns:
- this
-
setPolarity
- Overrides:
setPolarity
in classLXListenableParameter
-
setUnits
- Overrides:
setUnits
in classLXListenableParameter
-
updateValue
protected double updateValue(double value) Description copied from class:LXListenableParameter
Invoked when the value has changed. Subclasses should update any special internal state according to this new value.- Specified by:
updateValue
in classLXListenableParameter
- Parameters:
value
- New value- Returns:
- this
-
getValuei
public int getValuei()
-