|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.workbook.Color
Represents a color within a style.
Field Summary | |
protected int |
blue
Blue component. |
protected int |
green
Green component. |
protected int |
red
Red component. |
Constructor Summary | |
Color(int red,
int green,
int blue)
Constructs a Color with the specified red, green and blue components. |
Method Summary | |
static Color |
createInstance(int colorCode)
Returns one of the standard Excel or Gnumeric colors. |
int |
getBlue()
Returns the blue component of the color. |
int |
getGreen()
Returns the green component of the color. |
int |
getRed()
Returns the red component of the color. |
java.lang.String |
toString()
Returns the color as a string in the format required by Gnumeric. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int red
protected int green
protected int blue
Constructor Detail |
public Color(int red, int green, int blue)
red
- the red component.green
- the green component.blue
- the blue component.Method Detail |
public int getRed()
public int getGreen()
public int getBlue()
public java.lang.String toString()
toString
in class java.lang.Object
public static Color createInstance(int colorCode)
colorCode
- Code for one of the standard colors. If an unrecognised code is used,
the method returns the color EXCEL_WHITE.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |