com.aspose.cells

Class CellsColor

  • java.lang.Object
    • com.aspose.cells.CellsColor
public class CellsColor 
extends java.lang.Object

Represents all types of color.

Property Getters/Setters Summary
intgetArgb()
void
setArgb(intvalue)
Gets and sets the color from a 32-bit ARGB value.
ColorgetColor()
void
setColor(Color value)
Gets and sets the RGB color.
intgetColorIndex()
void
setColorIndex(intvalue)
Gets and sets the color index in the color palette. Only applies of indexed color.
booleanisShapeColor()
void
setShapeColor(booleanvalue)
Gets and set the color which should apply to cell or shape.
ThemeColorgetThemeColor()
void
Gets the theme color. Only applies for theme color type.
doublegetTransparency()
void
setTransparency(doublevalue)
Gets and sets transparency as a value from 0.0 (opaque) through 1.0 (clear).
intgetType()
The color type. The value of the property is ColorType integer constant.
 
Method Summary
voidsetTintOfShapeColor(doubletint)
Set the tint of the shape color
 

    • Property Getters/Setters Detail

      • isShapeColor/setShapeColor

        public boolean isShapeColor() / public void setShapeColor(boolean value)
        
        Gets and set the color which should apply to cell or shape. The expression of the color of the cell and the shape is different. For example: the theme color with same tint value will be not same in the cell and the shape.
      • getType

        public int getType()
        
        The color type. The value of the property is ColorType integer constant.
      • getThemeColor/setThemeColor

        public ThemeColor getThemeColor() / public void setThemeColor(ThemeColor value)
        
        Gets the theme color. Only applies for theme color type.
      • getColorIndex/setColorIndex

        public int getColorIndex() / public void setColorIndex(int value)
        
        Gets and sets the color index in the color palette. Only applies of indexed color.
      • getColor/setColor

        public Color getColor() / public void setColor(Color value)
        
        Gets and sets the RGB color.
      • getArgb/setArgb

        public int getArgb() / public void setArgb(int value)
        
        Gets and sets the color from a 32-bit ARGB value.
      • getTransparency/setTransparency

        public double getTransparency() / public void setTransparency(double value)
        
        Gets and sets transparency as a value from 0.0 (opaque) through 1.0 (clear).
    • Method Detail

      • setTintOfShapeColor

        public void setTintOfShapeColor(double tint)
        Set the tint of the shape color
        Parameters:
        tint -