Class ExtendedColor

  • All Implemented Interfaces:
    java.lang.Cloneable

    public final class ExtendedColor
    extends java.lang.Object
    implements java.lang.Cloneable
    Title: CTColor (Extended Color) record part

    The HSSF file format normally stores Color information in the Palette (see PaletteRecord), but for a few cases (eg Conditional Formatting, Sheet Extensions), this XSSF-style color record can be used.

    • Constructor Detail

      • ExtendedColor

        public ExtendedColor()
    • Method Detail

      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • getColorIndex

        public int getColorIndex()
        Returns:
        Palette color index, if type is TYPE_INDEXED
      • setColorIndex

        public void setColorIndex​(int colorIndex)
      • getRGBA

        public byte[] getRGBA()
        Returns:
        Red Green Blue Alpha, if type is TYPE_RGB
      • setRGBA

        public void setRGBA​(byte[] rgba)
      • getThemeIndex

        public int getThemeIndex()
        Returns:
        Theme color type index, eg THEME_DARK_1, if type is TYPE_THEMED
      • setThemeIndex

        public void setThemeIndex​(int themeIndex)
      • getTint

        public double getTint()
        Returns:
        Tint and Shade value, between -1 and +1
      • setTint

        public void setTint​(double tint)
        Parameters:
        tint - Tint and Shade value, between -1 and +1
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getDataLength

        public int getDataLength()