![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.cells.Color
public final class Color
Represents a color which contains three, 8-bit components: red, green, and blue.
Field Summary | |
---|---|
static Color |
BLACK
The color black. |
static Color |
BLUE
The color blue. |
static Color |
CYAN
The color cyan. |
static Color |
GRAY
The color gray. |
static Color |
GREEN
The color green. |
static Color |
LIME
The color lime. |
static Color |
MAGENTA
The color magenta. |
static Color |
MAROON
The color maroon. |
static Color |
NAVY
The color navy. |
static Color |
OLIVE
The color oliver. |
static Color |
PURPLE
The color purple. |
static Color |
RED
The color red. |
static Color |
SILVER
The color silver. |
static Color |
TEAL
The color teal. |
static Color |
WHITE
The color white. |
static Color |
YELLOW
The color yellow. |
Constructor Summary | |
---|---|
Color()
Initializes a new instance of the Color class. |
|
Color(int red,
int green,
int blue)
Initializes a new instance of the Color class. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
void |
copy(Color color)
Copies component values from another color. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
getBlue()
Gets the blue component value. |
int |
getGreen()
Gets the green component value. |
int |
getRed()
Gets the red component value. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setBlue(int blue)
Sets the blue component value. |
void |
setGreen(int green)
Sets the green component value. |
void |
setRed(int red)
Sets the red component value. |
java.lang.String |
toString()
Converts this Color object to a human-readable string. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Color BLACK
public static final Color WHITE
public static final Color RED
public static final Color LIME
public static final Color BLUE
public static final Color YELLOW
public static final Color MAGENTA
public static final Color CYAN
public static final Color MAROON
public static final Color GREEN
public static final Color NAVY
public static final Color OLIVE
public static final Color PURPLE
public static final Color TEAL
public static final Color SILVER
public static final Color GRAY
Constructor Detail |
---|
public Color(int red, int green, int blue)
red
- the red component value(0-255).green
- the green component value(0-255).blue
- the blue component value(0-255).
java.lang.IllegalArgumentException
- if any of the component values is invalid.public Color()
Method Detail |
---|
public final java.lang.Object clone()
clone
in class java.lang.Object
Object.clone().
public java.lang.String toString()
toString
in class java.lang.Object
public final void copy(Color color)
color
- the color to copy from.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(Object).
public final int hashCode()
hashCode
in class java.lang.Object
Object.hashCode().
public final int getRed()
public final void setRed(int red)
red
- the red component value(0-255).
java.lang.IllegalArgumentException
- if the component value is invalid.public final int getGreen()
public final void setGreen(int green)
green
- the green component value(0-255).
java.lang.IllegalArgumentException
- if the component value is invalid.public final int getBlue()
public final void setBlue(int blue)
blue
- the blue component value(0-255).
java.lang.IllegalArgumentException
- if the component value is invalid.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |