ocolor-ag凯发旗舰厅



com.spire.xls
class ocolor

java.lang.object
  extended by com.spire.xls.ocolor

public class ocolor
extends java.lang.object

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

ocolor

public ocolor()

ocolor

public ocolor(java.awt.color rgb)
method detail

getvalue

public int getvalue()
returns color value (it can be index, rgb color, etc.)

gettint

public double gettint()
gets tint.

settint

public void settint(double value)
sets tint.

getcolortype

public colortype getcolortype()
returns type of the stored color.

settheme

public void settheme(int themeindex,
                     iworkbook book)
sets theme color.
parameters:
themeindex - theme color index.
book - parent workbook.

settheme

public void settheme(int themeindex,
                     iworkbook book,
                     double dtintvalue)
sets theme color
parameters:
themeindex - theme color index.
book - parent workbook.
dtintvalue - tint value.

setrgb

public void setrgb(com.spire.ms.system.drawing.color rgb,
                   iworkbook book,
                   double dtintvalue)
sets rgb color.
parameters:
rgb - rgb color to set.
book - parent workbook.
dtintvalue - tint value.

setknowncolor

public void setknowncolor(excelcolors value)
sets known color.
parameters:
value - excel color to set.

getknowncolor

public excelcolors getknowncolor(workbook book)

equals

public boolean equals(java.lang.object obj)
determines whether the specified object is equal to the current object.
overrides:
equals in class java.lang.object
parameters:
obj - the object to compare with the current object.
returns:
true if the specified object is equal to the current object; otherwise, false.


网站地图