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 java.lang.Object implements HwmfRecord, HwmfObjectTableEntry
-
-
Constructor Summary
Constructors Constructor Description WmfPaletteParent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(HwmfGraphics ctx)
Apply the record settings to the graphics contextprotected java.util.List<HwmfPalette.PaletteEntry>
getPaletteCopy()
protected int
getPaletteStart()
int
init(LittleEndianInputStream leis, long recordSize, int recordFunction)
Init record from stream-
Methods 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
-
-
-
-
Method Detail
-
init
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws java.io.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:
java.io.IOException
-
draw
public final void draw(HwmfGraphics ctx)
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
protected java.util.List<HwmfPalette.PaletteEntry> getPaletteCopy()
-
getPaletteStart
protected int getPaletteStart()
-
-