Package heronarts.lx.color
Class DiscreteColorParameter
java.lang.Object
heronarts.lx.parameter.LXListenableParameter
heronarts.lx.parameter.LXListenableNormalizedParameter
heronarts.lx.parameter.DiscreteParameter
heronarts.lx.color.DiscreteColorParameter
- All Implemented Interfaces:
LXPath
,LXNormalizedParameter
,LXParameter
Utility class with a discrete selection of colors that are shown by a UI picker
device. Keeps things looking sane in the UI.
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.parameter.DiscreteParameter
DiscreteParameter.IncrementMode
Nested classes/interfaces inherited from interface heronarts.lx.parameter.LXNormalizedParameter
LXNormalizedParameter.OscMode
Nested 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.parameter.DiscreteParameter
maxValue, minValue, optionsChanged, range
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 TypeMethodDescriptionint
getColor()
setDescription
(String description) setWrappable
(boolean wrappable) Methods inherited from class heronarts.lx.parameter.DiscreteParameter
decrement, decrement, decrement, decrement, getBaseIndex, getBaseOption, getBaseValuei, getIncrementMode, getIndex, getMaxValue, getMinValue, getNormalized, getOption, getOption, getOptions, getRange, getRangei, getValueFromNormalized, getValuei, increment, increment, increment, increment, normalizedToValue, setFormatter, setFormatter, setIncrementMode, setIndex, setMappable, setNormalized, setOptions, setOptions, setOptions, setRange, setRange, setRange, setUnits, updateValue
Methods inherited from class heronarts.lx.parameter.LXListenableNormalizedParameter
getExponent, getNormalizedWithModulation, getOscMode, incrementNormalized, incrementNormalized, isWrappable, setExponent, setOscMode
Methods inherited from class heronarts.lx.parameter.LXListenableParameter
addListener, addListener, bang, dispose, getDescription, getFormatter, getLabel, getParent, getParentParameter, getPath, getPolarity, getUnits, getValue, incrementValue, isDefault, isMappable, removeListener, reset, reset, setComponent, setPolarity, 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.LXNormalizedParameter
getBaseNormalized, getBaseNormalizedf, getNormalizedf
Methods inherited from interface heronarts.lx.parameter.LXParameter
dispose, getBaseValue, getBaseValuef, getFormatter, getLabel, getParentParameter, getPolarity, getUnits, getValue, getValuef, isMappable, reset, setComponent, setValue
Methods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getDescription, getParent, getPath, isDescendant
-
Field Details
-
NUM_PRIMARY_COLORS
public static final int NUM_PRIMARY_COLORS- See Also:
-
COLORS
public static final int[] COLORS
-
-
Constructor Details
-
DiscreteColorParameter
-
-
Method Details
-
setDescription
- Overrides:
setDescription
in classDiscreteParameter
-
setWrappable
- Overrides:
setWrappable
in classDiscreteParameter
-
getColor
public int getColor()
-