Package toxi.color
Class AccessCriteria
java.lang.Object
toxi.color.AccessCriteria
- All Implemented Interfaces:
Comparator<ReadonlyTColor>
- Direct Known Subclasses:
AlphaAccessor
,CMYKAccessor
,HSVAccessor
,LuminanceAccessor
,RGBAccessor
Defines standard color component access criterias and associated comparators
used to sort colors based on component values. If a new custom accessor is
needed (e.g. for sub-classes TColor's), then simply sub-class this class and
implement the
Comparator
interface and the 2 abstract getter & setter
methods defined by this class.-
Field Summary
Modifier and TypeFieldDescriptionstatic final AccessCriteria
static final AccessCriteria
static final AccessCriteria
static final AccessCriteria
static final AccessCriteria
static final AccessCriteria
static final AccessCriteria
static final AccessCriteria
static final AccessCriteria
static final AccessCriteria
static final AccessCriteria
static final AccessCriteria
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract float
abstract void
setComponentValueFor
(TColor col, float value) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
HUE
-
SATURATION
-
BRIGHTNESS
-
RED
-
GREEN
-
BLUE
-
CYAN
-
MAGENTA
-
YELLOW
-
BLACK
-
ALPHA
-
LUMINANCE
-
-
Constructor Details
-
AccessCriteria
public AccessCriteria()
-
-
Method Details
-
getComponentValueFor
-
setComponentValueFor
-