|
||||||||||
| 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, GRAY, GREEN, HANDLE_BG, HANDLE_FG, LIGHT_BLUE, LIGHT_GRAY, LIGHT_GREEN, LIGHT_LIGHT_GRAY, ORANGE, RED, SHAPE_SELECTION_FG, VC_DARK_BEIGE, VC_DARK_BLUE, VC_DARK_BROWN, VC_DARK_GREEN, VC_DARK_GREY, VC_DARK_GREYISH_BLUE, VC_DARK_ORANGE, VC_DARK_PURPLE, VC_LIGHT_BEIGE, VC_LIGHT_BLUE, VC_LIGHT_BROWN, VC_LIGHT_GREEN, VC_LIGHT_GREY, VC_LIGHT_GREYISH_BLUE, VC_LIGHT_ORANGE, VC_LIGHT_PURPLE, VC_MEDIUM_BEIGE, VC_MEDIUM_BLUE, VC_MEDIUM_BROWN, VC_MEDIUM_GREEN, VC_MEDIUM_GREY, VC_MEDIUM_GREYISH_BLUE, VC_MEDIUM_ORANGE, VC_MEDIUM_PURPLE, VC_VERY_LIGHT_BLUE, VC_VERY_LIGHT_GREEN, 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). |
|
| 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 color| Method Detail |
|---|
public int getRed()
IColorConstant
getRed in interface IColorConstantpublic int getGreen()
IColorConstant
getGreen in interface IColorConstantpublic int getBlue()
IColorConstant
getBlue in interface IColorConstant
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||