Package org.apache.poi.hwmf.record
Class HwmfPalette.WmfPaletteParent
java.lang.Object
org.apache.poi.hwmf.record.HwmfPalette.WmfPaletteParent
- All Implemented Interfaces:
HwmfObjectTableEntry
,HwmfRecord
- Direct Known Subclasses:
HwmfPalette.WmfAnimatePalette
,HwmfPalette.WmfCreatePalette
,HwmfPalette.WmfSetPaletteEntries
- Enclosing class:
- HwmfPalette
public abstract static class HwmfPalette.WmfPaletteParent
extends Object
implements HwmfRecord, HwmfObjectTableEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
draw
(HwmfGraphics ctx) Apply the record settings to the graphics contextprotected List<HwmfPalette.PaletteEntry>
protected int
int
init
(LittleEndianInputStream leis, long recordSize, int recordFunction) Init record from streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.poi.hwmf.record.HwmfObjectTableEntry
applyObject
Methods inherited from interface org.apache.poi.hwmf.record.HwmfRecord
getRecordType
-
Constructor Details
-
WmfPaletteParent
public WmfPaletteParent()
-
-
Method Details
-
init
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws IOException Description copied from interface:HwmfRecord
Init record from stream- Specified by:
init
in interfaceHwmfRecord
- Parameters:
leis
- the little endian input stream- Returns:
- count of processed bytes
- Throws:
IOException
-
draw
Description copied from interface:HwmfRecord
Apply the record settings to the graphics context- Specified by:
draw
in interfaceHwmfRecord
- Parameters:
ctx
- the graphics context to modify
-
getPaletteCopy
-
getPaletteStart
protected int getPaletteStart()
-