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 BoundedParameter
final DiscreteParameter
final LXClip
final Cursor
final MutableParameter
Fields inherited from class heronarts.lx.parameter.AggregateParameter
subparameters
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Subclasses should update the main parameter value when a sub-parameter has changedprotected double
onUpdateValue
(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 void
updateSubparameters
(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, updateValue
Methods 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, 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
-
Field Details
-
clip
-
cursor
-
millis
-
beatCount
-
beatBasis
-
-
Constructor Details
-
CursorParameter
-
-
Method Details
-
reset
Description copied from interface:LXParameter
A method to reset the value of the parameter, if a default is available. Not necessarily defined for all parameters, may be ignored.- Specified by:
reset
in interfaceLXParameter
- Overrides:
reset
in classLXListenableParameter
- Returns:
- this
-
onUpdateValue
protected double onUpdateValue(double value) Description copied from class:AggregateParameter
Subclasses may optionally override to take action based upon directly updated value- Overrides:
onUpdateValue
in classAggregateParameter
- Parameters:
value
- Updated value- Returns:
- Value to store
-
updateSubparameters
protected void updateSubparameters(double value) Description copied from class:AggregateParameter
Subclasses should update the subparameter values based upon the raw parameter value if it has been set directly.- Specified by:
updateSubparameters
in classAggregateParameter
-
onSubparameterUpdate
Description copied from class:AggregateParameter
Subclasses should update the main parameter value when a sub-parameter has changed- Specified by:
onSubparameterUpdate
in classAggregateParameter
- Parameters:
p
- Subparameter that has changed
-
setDescription
- Overrides:
setDescription
in classLXListenableParameter
-