Package heronarts.lx.color
Class LinkedColorParameter
java.lang.Object
heronarts.lx.parameter.LXListenableParameter
heronarts.lx.parameter.AggregateParameter
heronarts.lx.color.ColorParameter
heronarts.lx.color.LinkedColorParameter
- All Implemented Interfaces:
LXPath,LXParameter
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface heronarts.lx.parameter.LXParameter
LXParameter.Collection, LXParameter.Formatter, LXParameter.Monitor, LXParameter.MultiMonitor, LXParameter.Polarity, LXParameter.Units -
Field Summary
FieldsFields inherited from class heronarts.lx.color.ColorParameter
brightness, color, hue, PATH_BRIGHTNESS, PATH_HUE, PATH_SATURATION, saturationFields 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
ConstructorsConstructorDescriptionLinkedColorParameter(String label) LinkedColorParameter(String label, int color) -
Method Summary
Modifier and TypeMethodDescriptionintCalculates the potentially modulated value of the color parameter based upon the parameter values at this precise instance.intgetColor()Returns the fixed color defined by this parameter.protected voidSubclasses should update the main parameter value when a sub-parameter has changedsetDescription(String description) setIndex(int index) Methods inherited from class heronarts.lx.color.ColorParameter
getBaseColor, getHexString, getRemoteControl, isBlack, onUpdateValue, setColor, updateSubparametersMethods inherited from class heronarts.lx.parameter.AggregateParameter
addSubparameter, dispose, 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, 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
-
mode
-
index
-
-
Constructor Details
-
LinkedColorParameter
-
LinkedColorParameter
-
-
Method Details
-
setDescription
- Overrides:
setDescriptionin classColorParameter
-
setMode
-
setIndex
-
getPaletteColor
-
onSubparameterUpdate
Description copied from class:AggregateParameterSubclasses should update the main parameter value when a sub-parameter has changed- Overrides:
onSubparameterUpdatein classColorParameter- Parameters:
p- Subparameter that has changed
-
calcColor
public int calcColor()Description copied from class:ColorParameterCalculates the potentially modulated value of the color parameter based upon the parameter values at this precise instance.- Overrides:
calcColorin classColorParameter- Returns:
- Generated color value
-
getColor
public int getColor()Description copied from class:ColorParameterReturns the fixed color defined by this parameter. Note that this does not take into account any modulation applied to the hue/saturation/brightness values.- Overrides:
getColorin classColorParameter- Returns:
- fixed color specified by the parameter
-