public class EscherColorRef
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EscherColorRef.SysIndexProcedure
The following enum specifies values that indicate special procedural properties that are used to modify the color components of another color.
(以下枚举指定了指示用于修改另一种颜色的颜色分量的特殊程序属性的值。)
|
static class |
EscherColorRef.SysIndexSource |
Constructor and Description |
---|
EscherColorRef(byte[] source, int start, int len) |
EscherColorRef(int colorRef) |
Modifier and Type | Method and Description |
---|---|
int |
getPaletteIndex() |
int[] |
getRGB() |
int |
getSchemeIndex() |
int |
getSysIndex() |
int |
getSysIndexInvert() |
EscherColorRef.SysIndexProcedure |
getSysIndexProcedure()
Return the
EscherColorRef.SysIndexProcedure - for invert flag use
getSysIndexInvert()
(返回 EscherColorRef.SysIndexProcedure - 对于反转标志使用 getSysIndexInvert())
|
EscherColorRef.SysIndexSource |
getSysIndexSource() |
boolean |
hasPaletteIndexFlag() |
boolean |
hasPaletteRGBFlag() |
boolean |
hasSchemeIndexFlag() |
boolean |
hasSysIndexFlag() |
boolean |
hasSystemRGBFlag() |
void |
setPaletteIndexFlag(boolean flag) |
void |
setPaletteRGBFlag(boolean flag) |
void |
setSchemeIndexFlag(boolean flag) |
void |
setSysIndexFlag(boolean flag) |
void |
setSystemRGBFlag(boolean flag) |
public EscherColorRef(int colorRef)
public EscherColorRef(byte[] source, int start, int len)
public boolean hasSysIndexFlag()
public void setSysIndexFlag(boolean flag)
public boolean hasSchemeIndexFlag()
public void setSchemeIndexFlag(boolean flag)
public boolean hasSystemRGBFlag()
public void setSystemRGBFlag(boolean flag)
public boolean hasPaletteRGBFlag()
public void setPaletteRGBFlag(boolean flag)
public boolean hasPaletteIndexFlag()
public void setPaletteIndexFlag(boolean flag)
public int[] getRGB()
public EscherColorRef.SysIndexSource getSysIndexSource()
EscherColorRef.SysIndexSource
if
hasSysIndexFlag()
is
true
, otherwise null
(EscherColorRef.SysIndexSource 如果 hasSysIndexFlag() 为真,否则为 null)
public EscherColorRef.SysIndexProcedure getSysIndexProcedure()
EscherColorRef.SysIndexProcedure
- for invert flag use
getSysIndexInvert()
(返回 EscherColorRef.SysIndexProcedure - 对于反转标志使用 getSysIndexInvert())
EscherColorRef.SysIndexProcedure
if
hasSysIndexFlag()
is
true
, otherwise null
(EscherColorRef.SysIndexProcedure 如果 hasSysIndexFlag() 为真,否则为 null)
public int getSysIndexInvert()
EscherColorRef.SysIndexProcedure.INVERT_AFTER
and 2 for
EscherColorRef.SysIndexProcedure.INVERT_HIGHBIT_AFTER
(0 表示无反转标志,1 表示 EscherColorRef.SysIndexProcedure.INVERT_AFTER 和 2 表示 EscherColorRef.SysIndexProcedure.INVERT_HIGHBIT_AFTER)
public int getSchemeIndex()
hasSchemeIndexFlag()
is
false
(方案颜色的索引,如果 hasSchemeIndexFlag() 为 false,则为 -1)
ColorSchemeAtom.getColor(int)
public int getPaletteIndex()
hasPaletteIndexFlag()
is
false
(当前调色板(颜色)的索引,如果 hasPaletteIndexFlag() 为 false,则为 -1)
public int getSysIndex()
hasSysIndexFlag()
is
false
(系统颜色表的索引,如果 hasSysIndexFlag() 为 false,则为 -1)
PresetColor
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.