|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Color
org.jfree.pixie.wmf.GDIColor
A color implementation, that supports some additional flags defined by the Windows API, but has no Alpha-Channel. This is a BGR color implementation, the flags are stored in the highest byte.
Field Summary | |
static int |
PC_EXPLICIT
|
static int |
PC_NOCOLLAPSE
|
static int |
PC_RESERVED
|
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 | |
GDIColor(int colorref)
Creates a new GDI color instance by parsing the color reference. |
|
GDIColor(int r,
int g,
int b,
int flags)
Creates a new GDI Color instance. |
Method Summary | |
int |
getFlags()
Gets the assigned flag for the color. |
boolean |
isExplicit()
Returns the PC_EXPLICIT flag state for this color. |
boolean |
isNoCollapse()
Returns the PC_NOCOLLAPSE flag state for this color. |
boolean |
isReserved()
Returns the PC_RESERVED flag state for this color. |
static int |
translateColor(java.awt.Color c)
Translates the given color instance into a GDI color reference. |
Methods inherited from class java.awt.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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PC_RESERVED
public static final int PC_EXPLICIT
public static final int PC_NOCOLLAPSE
Constructor Detail |
public GDIColor(int colorref)
colorref
- the integer color reference.public GDIColor(int r, int g, int b, int flags)
r
- the red channel.g
- the green channel.b
- the blue channel.flags
- the Windows Color flags.Method Detail |
public boolean isReserved()
public boolean isExplicit()
public boolean isNoCollapse()
public int getFlags()
public static int translateColor(java.awt.Color c)
c
- the color that should be translated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |