|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.color.model.ColorFactory
This factory can be used to acquire Color objects. This factory is provided as a singleton in a utility class. Thus all methods are implemented as static methods.
Field Summary | |
static Color |
BLACK
The constant BLACK contains the color black. |
static Color |
WHITE
The constant WHITE contains the color white. |
Method Summary | |
static CmykColor |
getCmyk(int cyan,
int magenta,
int yellow,
int black,
int alpha)
Get a new color in the CMYK color model. |
static GrayscaleColor |
getGray(int gray,
int alpha)
Get a new color in the grayscale color model. |
static HsvColor |
getHsv(int hue,
int saturation,
int value,
int alpha)
Get a new color in the HSV color model. |
static RgbColor |
getRgb(int red,
int green,
int blue,
int alpha)
Get a new color in the RGB color model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Color BLACK
public static final Color WHITE
Method Detail |
public static CmykColor getCmyk(int cyan, int magenta, int yellow, int black, int alpha)
cyan
- the cyan valuemagenta
- the magenta valueyellow
- the yellow valueblack
- the black valuealpha
- the alpha channel
public static GrayscaleColor getGray(int gray, int alpha)
gray
- the gray valuealpha
- the alpha channel
public static HsvColor getHsv(int hue, int saturation, int value, int alpha)
hue
- the hue valuesaturation
- the saturation valuevalue
- the valuealpha
- the alpha channel
public static RgbColor getRgb(int red, int green, int blue, int alpha)
red
- the red valuegreen
- the green valueblue
- the blue valuealpha
- the alpha channel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |