|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.xls.OColor
public class OColor
This object used to store, convert colors.
Constructor Summary | |
---|---|
OColor()
|
|
OColor(java.awt.Color rgb)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether the specified object is equal to the current object. |
ColorType |
getColorType()
Returns type of the stored color. |
ExcelColors |
getKnownColor(Workbook book)
|
double |
getTint()
Gets tint. |
int |
getValue()
Returns color value (it can be index, rgb color, etc.) |
void |
setKnownColor(ExcelColors value)
Sets known color. |
void |
setRGB(com.spire.ms.System.Drawing.Color rgb,
IWorkbook book,
double dTintValue)
Sets rgb color. |
void |
setTheme(int themeIndex,
IWorkbook book)
Sets theme color. |
void |
setTheme(int themeIndex,
IWorkbook book,
double dTintValue)
Sets theme color |
void |
setTint(double value)
Sets tint. |
Constructor Detail |
---|
public OColor()
public OColor(java.awt.Color rgb)
Method Detail |
---|
public int getValue()
public double getTint()
public void setTint(double value)
public ColorType getColorType()
public void setTheme(int themeIndex, IWorkbook book)
themeIndex
- Theme color index.book
- Parent workbook.public void setTheme(int themeIndex, IWorkbook book, double dTintValue)
themeIndex
- Theme color index.book
- Parent workbook.dTintValue
- Tint value.public void setRGB(com.spire.ms.System.Drawing.Color rgb, IWorkbook book, double dTintValue)
rgb
- Rgb color to set.book
- Parent workbook.dTintValue
- Tint value.public void setKnownColor(ExcelColors value)
value
- Excel color to set.public ExcelColors getKnownColor(Workbook book)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to compare with the current object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |