|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Color
org.freehep.graphicsio.ps.MappedColor
public class MappedColor
| Field Summary | |
|---|---|
protected int |
brightness
Value of the brightness/darkness of this color. |
protected int |
colorIndex
Index of the color in the color map. |
| Fields inherited from class java.awt.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 |
| Fields inherited from interface java.awt.Transparency |
|---|
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
java.awt.Color |
brighter()
Make a brightened color based on this color. |
java.awt.Color |
darker()
Make a darkened color based on this color. |
int |
getBrightness()
Get the brightness of this color. |
java.lang.String |
getColorTag()
Get the tag associated with this color. |
| Methods inherited from class java.awt.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int colorIndex
protected int brightness
| Constructor Detail |
|---|
public MappedColor(int r,
int g,
int b,
int colorIndex)
public MappedColor(int r,
int g,
int b,
int colorIndex,
int brightness)
| Method Detail |
|---|
public java.awt.Color brighter()
brighter in class java.awt.Colorpublic java.awt.Color darker()
darker in class java.awt.Colorpublic int getBrightness()
public java.lang.String getColorTag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||