public class ColorParameter extends LXListenableParameter implements LXParameterListener
LXParameter.Formatter, LXParameter.Polarity, LXParameter.Units
Modifier and Type | Field and Description |
---|---|
CompoundParameter |
brightness |
CompoundParameter |
hue |
static String |
PATH_BRIGHTNESS |
static String |
PATH_HUE |
static String |
PATH_SATURATION |
CompoundParameter |
saturation |
description
Constructor and Description |
---|
ColorParameter(String label) |
ColorParameter(String label,
int color) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Invoked when the parameter is done being used and none of its resources
are needed anymore.
|
int |
getColor() |
String |
getHexString() |
void |
onParameterChanged(LXParameter parameter)
Invoked when the value of a parameter is changed.
|
ColorParameter |
setColor(int color) |
ColorParameter |
setDescription(String description) |
protected double |
updateValue(double value)
Invoked when the value has changed.
|
addListener, bang, getDescription, getFormatter, getLabel, getParent, getPath, getPolarity, getUnits, getValue, getValuef, incrementValue, isMappable, removeListener, reset, reset, setComponent, setFormatter, setMappable, setPolarity, setUnits, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
public final CompoundParameter hue
public final CompoundParameter saturation
public final CompoundParameter brightness
public static final String PATH_HUE
public static final String PATH_SATURATION
public static final String PATH_BRIGHTNESS
public ColorParameter(String label)
public ColorParameter(String label, int color)
public ColorParameter setDescription(String description)
setDescription
in class LXListenableParameter
public int getColor()
public ColorParameter setColor(int color)
public String getHexString()
protected double updateValue(double value)
LXListenableParameter
updateValue
in class LXListenableParameter
value
- New valuepublic void onParameterChanged(LXParameter parameter)
LXParameterListener
onParameterChanged
in interface LXParameterListener
parameter
- The parameter that has changed its valuepublic void dispose()
LXParameter
dispose
in interface LXParameter
dispose
in class LXListenableParameter
LX library by Mark C. Slee. © 2012-2020