Package heronarts.lx.parameter
Class StringParameter
java.lang.Object
heronarts.lx.parameter.LXListenableParameter
heronarts.lx.parameter.StringParameter
- All Implemented Interfaces:
LXPath,LXParameter
Parameter which contains a mutable String value.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreset()A method to reset the value of the parameter, if a default is available.reset(double value) Resets the value of the parameter, giving it a new default.setDescription(String description) setMappable(boolean mappable) Sets whether this parameter should be eligible for MIDI/modulation mapping or not.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, setComponent, setFormatter, 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
-
Constructor Details
-
StringParameter
-
StringParameter
-
-
Method Details
-
setDescription
- Overrides:
setDescriptionin classLXListenableParameter
-
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
-
reset
Description copied from interface:LXParameterA method to reset the value of the parameter, if a default is available. Not necessarily defined for all parameters, may be ignored.- Specified by:
resetin interfaceLXParameter- Overrides:
resetin classLXListenableParameter- Returns:
- this
-
reset
Description copied from class:LXListenableParameterResets the value of the parameter, giving it a new default. Future calls to reset() with no parameter will use this value.- Overrides:
resetin classLXListenableParameter- Parameters:
value- New default value- Returns:
- this
-
reset
-
setValue
-
setValue
-
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
-
getString
-