public abstract class ExtendedColor extends Color
Modifier and Type | Field and Description |
---|---|
static int |
MAX_COLOR_VALUE
the max int color value (255) expressed in int
|
static float |
MAX_FLOAT_COLOR_VALUE
the max float color value (1) expressed in float
|
static float |
MAX_INT_COLOR_VALUE
the max int color value (255) expressed in float
|
protected int |
type |
static int |
TYPE_CMYK
a type of extended color.
|
static int |
TYPE_GRAY
a type of extended color.
|
static int |
TYPE_PATTERN
a type of extended color.
|
static int |
TYPE_RGB
a type of extended color.
|
static int |
TYPE_SEPARATION
a type of extended color.
|
static int |
TYPE_SHADING
a type of extended color.
|
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
ExtendedColor(int type)
Constructs an extended color of a certain type.
|
ExtendedColor(int type,
float red,
float green,
float blue)
Constructs an extended color of a certain type and a certain color.
|
ExtendedColor(int type,
float red,
float green,
float blue,
float alpha)
Constructs an extended color of a certain type and a certain color.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Gets the type of this color.
|
static int |
getType(Color color)
Gets the type of a given color.
|
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
public static final int TYPE_RGB
public static final int TYPE_GRAY
public static final int TYPE_CMYK
public static final int TYPE_SEPARATION
public static final int TYPE_PATTERN
public static final int TYPE_SHADING
public static final int MAX_COLOR_VALUE
public static final float MAX_INT_COLOR_VALUE
public static final float MAX_FLOAT_COLOR_VALUE
protected int type
public ExtendedColor(int type)
type
- type
public ExtendedColor(int type, float red, float green, float blue)
type
- type
red
- red quotientgreen
- green quotientblue
- blue quotientpublic ExtendedColor(int type, float red, float green, float blue, float alpha)
type
- type
red
- red quotientgreen
- green quotientblue
- blue quotientalpha
- alpha quotientCopyright © 2020. All rights reserved.