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.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 nullpublic EscherColorRef.SysIndexProcedure getSysIndexProcedure()
EscherColorRef.SysIndexProcedure
- for invert flag use getSysIndexInvert()
EscherColorRef.SysIndexProcedure
if hasSysIndexFlag()
is true
, otherwise nullpublic int getSysIndexInvert()
EscherColorRef.SysIndexProcedure.INVERT_AFTER
and
2 for EscherColorRef.SysIndexProcedure.INVERT_HIGHBIT_AFTER
public int getSchemeIndex()
hasSchemeIndexFlag()
is false
ColorSchemeAtom.getColor(int)
public int getPaletteIndex()
hasPaletteIndexFlag()
is false
public int getSysIndex()
hasSysIndexFlag()
is false
PresetColor
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.