public class MappedColor extends Color
Modifier and Type | Field and Description |
---|---|
protected int |
brightness
Value of the brightness/darkness of this color.
|
protected int |
colorIndex
Index of the color in the color map.
|
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 |
---|
MappedColor(int r,
int g,
int b,
int colorIndex)
Constructor takes the RGB color components and the color index.
|
MappedColor(int r,
int g,
int b,
int colorIndex,
int brightness)
Constructor takes the RGB color components, the color index, and the
brightness.
|
Modifier and Type | Method and Description |
---|---|
Color |
brighter()
Make a brightened color based on this color.
|
Color |
darker()
Make a darkened color based on this color.
|
int |
getBrightness()
Get the brightness of this color.
|
String |
getColorTag()
Get the tag associated with this color.
|
createContext, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
protected int colorIndex
protected int brightness
public MappedColor(int r, int g, int b, int colorIndex)
public MappedColor(int r, int g, int b, int colorIndex, int brightness)
public Color brighter()
public Color darker()
public int getBrightness()
public String getColorTag()
Copyright © 2014. All rights reserved.