Package org.apache.poi.ddf
Class EscherColorRef
- java.lang.Object
-
- org.apache.poi.ddf.EscherColorRef
-
public class EscherColorRef extends Object
An OfficeArtCOLORREF structure entry which also handles color extension opid data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 Summary
Constructors Constructor Description EscherColorRef(byte[] source, int start, int len)
EscherColorRef(int colorRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPaletteIndex()
int[]
getRGB()
int
getSchemeIndex()
int
getSysIndex()
int
getSysIndexInvert()
EscherColorRef.SysIndexProcedure
getSysIndexProcedure()
Return theEscherColorRef.SysIndexProcedure
- for invert flag usegetSysIndexInvert()
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)
-
-
-
Method Detail
-
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
ifhasSysIndexFlag()
istrue
, otherwise null
-
getSysIndexProcedure
public EscherColorRef.SysIndexProcedure getSysIndexProcedure()
Return theEscherColorRef.SysIndexProcedure
- for invert flag usegetSysIndexInvert()
- Returns:
EscherColorRef.SysIndexProcedure
ifhasSysIndexFlag()
istrue
, otherwise null
-
getSysIndexInvert
public int getSysIndexInvert()
- Returns:
- 0 for no invert flag, 1 for
EscherColorRef.SysIndexProcedure.INVERT_AFTER
and 2 forEscherColorRef.SysIndexProcedure.INVERT_HIGHBIT_AFTER
-
getSchemeIndex
public int getSchemeIndex()
- Returns:
- index of the scheme color or -1 if
hasSchemeIndexFlag()
isfalse
- See Also:
org.apache.poi.hslf.record.ColorSchemeAtom#getColor(int)
-
getPaletteIndex
public int getPaletteIndex()
- Returns:
- index of current palette (color) or -1 if
hasPaletteIndexFlag()
isfalse
-
getSysIndex
public int getSysIndex()
- Returns:
- index of system color table or -1 if
hasSysIndexFlag()
isfalse
- See Also:
PresetColor
-
-