|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.util.ColorConstant
public class ColorConstant
The Class ColorConstant.
Field Summary | |
---|---|
private int |
blue
|
private int |
green
|
private int |
red
|
Fields inherited from interface org.eclipse.graphiti.util.IColorConstant |
---|
BLACK, BLUE, CONNECTION_SELECTION_FG, CYAN, DARK_BLUE, DARK_GRAY, DARK_GREEN, DARK_ORANGE, GRAY, GREEN, HANDLE_BG, HANDLE_FG, LIGHT_BLUE, LIGHT_GRAY, LIGHT_GREEN, LIGHT_LIGHT_GRAY, LIGHT_ORANGE, ORANGE, RED, SHAPE_SELECTION_FG, WHITE, YELLOW |
Constructor Summary | |
---|---|
ColorConstant(int red,
int green,
int blue)
Creates a new ColorConstant given the desired red, green and blue
values expressed as ints in the range 0 to 255 (where 0 is black and 255
is full brightness). |
|
ColorConstant(String hexRGBString)
Creates a new ColorConstant for for a given String, which defines
the RGB values in hexadecimal format. |
Method Summary | |
---|---|
int |
getBlue()
Returns the amount of blue in the color, from 0 to 255. |
int |
getGreen()
Returns the amount of green in the color, from 0 to 255. |
int |
getRed()
Returns the amount of red in the color, from 0 to 255. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int red
private int green
private int blue
Constructor Detail |
---|
public ColorConstant(int red, int green, int blue)
ColorConstant
given the desired red, green and blue
values expressed as ints in the range 0 to 255 (where 0 is black and 255
is full brightness).
red
- the amount of red in the colorgreen
- the amount of green in the colorblue
- the amount of blue in the colorpublic ColorConstant(String hexRGBString)
ColorConstant
for for a given String, which defines
the RGB values in hexadecimal format. This means, that the String must
have a length of 6 characters. Example: getColor("FF0000")
returns a red color.
hexRGBString
- The RGB values in hexadecimal format.Method Detail |
---|
public int getRed()
IColorConstant
getRed
in interface IColorConstant
public int getGreen()
IColorConstant
getGreen
in interface IColorConstant
public int getBlue()
IColorConstant
getBlue
in interface IColorConstant
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |