public final class ExtendedColor extends java.lang.Object implements Duplicatable, GenericRecord
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.
Modifier and Type | Field and Description |
---|---|
static int |
THEME_ACCENT_1 |
static int |
THEME_ACCENT_2 |
static int |
THEME_ACCENT_3 |
static int |
THEME_ACCENT_4 |
static int |
THEME_ACCENT_5 |
static int |
THEME_ACCENT_6 |
static int |
THEME_DARK_1 |
static int |
THEME_DARK_2 |
static int |
THEME_FOLLOWED_HYPERLINK |
static int |
THEME_HYPERLINK |
static int |
THEME_LIGHT_1 |
static int |
THEME_LIGHT_2 |
static int |
TYPE_AUTO |
static int |
TYPE_INDEXED |
static int |
TYPE_RGB |
static int |
TYPE_THEMED |
static int |
TYPE_UNSET |
Constructor and Description |
---|
ExtendedColor() |
ExtendedColor(ExtendedColor other) |
ExtendedColor(LittleEndianInput in) |
Modifier and Type | Method and Description |
---|---|
ExtendedColor |
copy() |
int |
getColorIndex() |
int |
getDataLength() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
byte[] |
getRGBA() |
int |
getThemeIndex() |
double |
getTint() |
int |
getType() |
void |
serialize(LittleEndianOutput out) |
void |
setColorIndex(int colorIndex) |
void |
setRGBA(byte[] rgba) |
void |
setThemeIndex(int themeIndex) |
void |
setTint(double tint) |
void |
setType(int type) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericRecordType
public static final int TYPE_AUTO
public static final int TYPE_INDEXED
public static final int TYPE_RGB
public static final int TYPE_THEMED
public static final int TYPE_UNSET
public static final int THEME_DARK_1
public static final int THEME_LIGHT_1
public static final int THEME_DARK_2
public static final int THEME_LIGHT_2
public static final int THEME_ACCENT_1
public static final int THEME_ACCENT_2
public static final int THEME_ACCENT_3
public static final int THEME_ACCENT_4
public static final int THEME_ACCENT_5
public static final int THEME_ACCENT_6
public static final int THEME_HYPERLINK
public static final int THEME_FOLLOWED_HYPERLINK
public ExtendedColor()
public ExtendedColor(ExtendedColor other)
public ExtendedColor(LittleEndianInput in)
public int getType()
public void setType(int type)
public int getColorIndex()
TYPE_INDEXED
public void setColorIndex(int colorIndex)
public byte[] getRGBA()
TYPE_RGB
public void setRGBA(byte[] rgba)
public int getThemeIndex()
THEME_DARK_1
, if type is TYPE_THEMED
public void setThemeIndex(int themeIndex)
public double getTint()
public void setTint(double tint)
tint
- Tint and Shade value, between -1 and +1public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
public java.lang.String toString()
toString
in class java.lang.Object
public ExtendedColor copy()
copy
in interface Duplicatable
public int getDataLength()
public void serialize(LittleEndianOutput out)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.