Package heronarts.lx.clip
Class LXClip.CursorParameter
java.lang.Object
heronarts.lx.parameter.LXListenableParameter
heronarts.lx.parameter.AggregateParameter
heronarts.lx.clip.LXClip.CursorParameter
- All Implemented Interfaces:
LXPath,LXParameter
- Enclosing class:
LXClip
-
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
FieldsModifier and TypeFieldDescriptionfinal BoundedParameterfinal DiscreteParameterfinal LXClipfinal Cursorfinal MutableParameterFields inherited from class heronarts.lx.parameter.AggregateParameter
subparametersFields 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 TypeMethodDescriptionprotected voidSubclasses should update the main parameter value when a sub-parameter has changedprotected doubleonUpdateValue(double value) Subclasses may optionally override to take action based upon directly updated valuereset()A method to reset the value of the parameter, if a default is available.setDescription(String description) protected voidupdateSubparameters(double value) Subclasses should update the subparameter values based upon the raw parameter value if it has been set directly.Methods inherited from class heronarts.lx.parameter.AggregateParameter
addSubparameter, dispose, getRemoteControl, updateValueMethods inherited from class heronarts.lx.parameter.LXListenableParameter
addListener, addListener, bang, getDescription, getFormatter, getLabel, getParent, getParentParameter, getPath, getPolarity, getUnits, getValue, incrementValue, isDefault, isMappable, removeListener, reset, setComponent, setFormatter, setMappable, 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
-
Field Details
-
clip
-
cursor
-
millis
-
beatCount
-
beatBasis
-
-
Constructor Details
-
CursorParameter
-
-
Method Details
-
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
-
onUpdateValue
protected double onUpdateValue(double value) Description copied from class:AggregateParameterSubclasses may optionally override to take action based upon directly updated value- Overrides:
onUpdateValuein classAggregateParameter- Parameters:
value- Updated value- Returns:
- Value to store
-
updateSubparameters
protected void updateSubparameters(double value) Description copied from class:AggregateParameterSubclasses should update the subparameter values based upon the raw parameter value if it has been set directly.- Specified by:
updateSubparametersin classAggregateParameter
-
onSubparameterUpdate
Description copied from class:AggregateParameterSubclasses should update the main parameter value when a sub-parameter has changed- Specified by:
onSubparameterUpdatein classAggregateParameter- Parameters:
p- Subparameter that has changed
-
setDescription
- Overrides:
setDescriptionin classLXListenableParameter
-