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 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.color.ColorParameter
brightness, color, hue, PATH_BRIGHTNESS, PATH_HUE, PATH_SATURATION, saturation
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
ROOT, ROOT_PREFIX, ROOT_SLASH
-
Constructor Summary
ConstructorDescriptionLinkedColorParameter
(String label) LinkedColorParameter
(String label, int color) -
Method Summary
Modifier and TypeMethodDescriptionint
Calculates the potentially modulated value of the color parameter based upon the parameter values at this precise instance.int
getColor()
Returns the fixed color defined by this parameter.protected void
Subclasses 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, updateSubparameters
Methods inherited from class heronarts.lx.parameter.AggregateParameter
addSubparameter, dispose, 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, 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, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
mode
-
index
-
-
Constructor Details
-
LinkedColorParameter
-
LinkedColorParameter
-
-
Method Details
-
setDescription
- Overrides:
setDescription
in classColorParameter
-
setMode
-
setIndex
-
getPaletteColor
-
onSubparameterUpdate
Description copied from class:AggregateParameter
Subclasses should update the main parameter value when a sub-parameter has changed- Overrides:
onSubparameterUpdate
in classColorParameter
- Parameters:
p
- Subparameter that has changed
-
calcColor
public int calcColor()Description copied from class:ColorParameter
Calculates the potentially modulated value of the color parameter based upon the parameter values at this precise instance.- Overrides:
calcColor
in classColorParameter
- Returns:
- Generated color value
-
getColor
public int getColor()Description copied from class:ColorParameter
Returns 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:
getColor
in classColorParameter
- Returns:
- fixed color specified by the parameter
-