org.apache.poi.ddf
Class EscherColorRef
java.lang.Object
org.apache.poi.ddf.EscherColorRef
public class EscherColorRef
- extends java.lang.Object
An OfficeArtCOLORREF structure entry which also handles color extension opid data
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EscherColorRef
public EscherColorRef(int colorRef)
EscherColorRef
public EscherColorRef(byte[] source,
int start,
int len)
hasSysIndexFlag
public boolean hasSysIndexFlag()
setSysIndexFlag
public void setSysIndexFlag(boolean flag)
hasSchemeIndexFlag
public boolean hasSchemeIndexFlag()
setSchemeIndexFlag
public void setSchemeIndexFlag(boolean flag)
hasSystemRGBFlag
public boolean hasSystemRGBFlag()
setSystemRGBFlag
public void setSystemRGBFlag(boolean flag)
hasPaletteRGBFlag
public boolean hasPaletteRGBFlag()
setPaletteRGBFlag
public void setPaletteRGBFlag(boolean flag)
hasPaletteIndexFlag
public boolean hasPaletteIndexFlag()
setPaletteIndexFlag
public void setPaletteIndexFlag(boolean flag)
getRGB
public int[] getRGB()
getSysIndexSource
public EscherColorRef.SysIndexSource getSysIndexSource()
- Returns:
EscherColorRef.SysIndexSource
if hasSysIndexFlag()
is true
, otherwise null
getSysIndexProcedure
public EscherColorRef.SysIndexProcedure getSysIndexProcedure()
- Return the
EscherColorRef.SysIndexProcedure
- for invert flag use getSysIndexInvert()
- Returns:
EscherColorRef.SysIndexProcedure
if hasSysIndexFlag()
is true
, otherwise null
getSysIndexInvert
public int getSysIndexInvert()
- Returns:
- 0 for no invert flag, 1 for
EscherColorRef.SysIndexProcedure.INVERT_AFTER
and
2 for EscherColorRef.SysIndexProcedure.INVERT_HIGHBIT_AFTER
getSchemeIndex
public int getSchemeIndex()
- Returns:
- index of the scheme color or -1 if
hasSchemeIndexFlag()
is false
- See Also:
ColorSchemeAtom
getPaletteIndex
public int getPaletteIndex()
- Returns:
- index of current palette (color) or -1 if
hasPaletteIndexFlag()
is false
getSysIndex
public int getSysIndex()
- Returns:
- index of system color table or -1 if
hasSysIndexFlag()
is false
- See Also:
PresetColor