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
Fields 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
ROOT, ROOT_PREFIX, ROOT_SLASH
-
Constructor Summary
-
Method Summary
Methods inherited from class heronarts.lx.parameter.DiscreteParameter
decrement, decrement, decrement, decrement, getBaseIndex, getBaseOption, getBaseValuei, getIncrementMode, getIndex, getMaxValue, getMinValue, getNormalized, getOption, getOptions, getRange, getValueFromNormalized, getValuei, increment, increment, increment, increment, normalizedToValue, setDescription, setIncrementMode, setIndex, setMappable, setNormalized, setOptions, setOptions, setRange, setRange, setUnits, setWrappable, 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, setFormatter, 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, setFormatter, setValue
Methods inherited from interface heronarts.lx.LXPath
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
-
getColor
public int getColor()
-