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, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameterpublic 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 LXListenableParameterpublic int getColor()
public ColorParameter setColor(int color)
public String getHexString()
protected double updateValue(double value)
LXListenableParameterupdateValue in class LXListenableParametervalue - New valuepublic void onParameterChanged(LXParameter parameter)
LXParameterListeneronParameterChanged in interface LXParameterListenerparameter - The parameter that has changed its valuepublic void dispose()
LXParameterdispose in interface LXParameterdispose in class LXListenableParameterLX library by Mark C. Slee. © 2012-2020