Class ExtendedColor

java.lang.Object
org.apache.poi.hssf.record.common.ExtendedColor
All Implemented Interfaces:
Cloneable

public final class ExtendedColor extends Object implements 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.

  • Field Details

  • Constructor Details

    • ExtendedColor

      public ExtendedColor()
    • ExtendedColor

      public ExtendedColor(LittleEndianInput in)
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object
    • clone

      public ExtendedColor clone()
      Overrides:
      clone in class Object
    • getDataLength

      public int getDataLength()
    • serialize

      public void serialize(LittleEndianOutput out)