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 enumThe 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 TypeMethodDescriptionintint[]getRGB()intintintReturn theEscherColorRef.SysIndexProcedure- for invert flag usegetSysIndexInvert()booleanbooleanbooleanbooleanbooleanvoidsetPaletteIndexFlag(boolean flag) voidsetPaletteRGBFlag(boolean flag) voidsetSchemeIndexFlag(boolean flag) voidsetSysIndexFlag(boolean flag) voidsetSystemRGBFlag(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.SysIndexSourceifhasSysIndexFlag()istrue, otherwise null
-
getSysIndexProcedure
Return theEscherColorRef.SysIndexProcedure- for invert flag usegetSysIndexInvert()- Returns:
EscherColorRef.SysIndexProcedureifhasSysIndexFlag()istrue, otherwise null
-
getSysIndexInvert
public int getSysIndexInvert()- Returns:
- 0 for no invert flag, 1 for
EscherColorRef.SysIndexProcedure.INVERT_AFTERand 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:
-