Package org.apache.poi.ddf
Class EscherColorRef
java.lang.Object
org.apache.poi.ddf.EscherColorRef
An OfficeArtCOLORREF structure entry which also handles color extension opid data
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The following enum specifies values that indicate special procedural properties that are used to modify the color components of another color.static enum
-
Constructor Summary
ConstructorsConstructorDescriptionEscherColorRef
(byte[] source, int start, int len) EscherColorRef
(int colorRef) -
Method Summary
Modifier and TypeMethodDescriptionint
int[]
getRGB()
int
int
int
Return theEscherColorRef.SysIndexProcedure
- for invert flag usegetSysIndexInvert()
boolean
boolean
boolean
boolean
boolean
void
setPaletteIndexFlag
(boolean flag) void
setPaletteRGBFlag
(boolean flag) void
setSchemeIndexFlag
(boolean flag) void
setSysIndexFlag
(boolean flag) void
setSystemRGBFlag
(boolean flag)
-
Constructor Details
-
EscherColorRef
public EscherColorRef(int colorRef) -
EscherColorRef
public EscherColorRef(byte[] source, int start, int len)
-
-
Method Details
-
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
- Returns:
EscherColorRef.SysIndexSource
ifhasSysIndexFlag()
istrue
, otherwise null
-
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:
-
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:
-