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.
(标题:CTColor(扩展颜色)记录部分 HSSF 文件格式通常将颜色信息存储在 Palette 中(请参阅 PaletteRecord),但对于少数情况(例如条件格式、Sheet Extensions),可以使用这种 XSSF 样式的颜色记录。)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
(调色板颜色索引,如果类型是 TYPE_INDEXED)
public void setColorIndex(int colorIndex)
public byte[] getRGBA()
TYPE_RGB
(红色 绿色 蓝色 Alpha,如果类型是 TYPE_RGB)
public void setRGBA(byte[] rgba)
public int getThemeIndex()
THEME_DARK_1
, if type is
TYPE_THEMED
(主题颜色类型索引,例如 THEME_DARK_1,如果类型是 TYPE_THEMED)
public void setThemeIndex(int themeIndex)
public double getTint()
public void setTint(double tint)
tint
- Tint and Shade value, between -1 and +1
(tint - 色调和阴影值,介于 -1 和 +1 之间)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
public java.lang.String toString()
toString
in class
java.lang.Object
public ExtendedColor copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
public int getDataLength()
public void serialize(LittleEndianOutput out)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.