public abstract static class HwmfPalette.WmfPaletteParent extends java.lang.Object implements HwmfRecord, HwmfObjectTableEntry
Modifier and Type | Field and Description |
---|---|
protected java.util.List<HwmfPalette.PaletteEntry> |
palette |
protected int |
start
Start (2 bytes): A 16-bit unsigned integer that defines the offset into the Palette Object when
used with the META_SETPALENTRIES and META_ANIMATEPALETTE record types.
|
Constructor and Description |
---|
WmfPaletteParent() |
Modifier and Type | Method and Description |
---|---|
void |
draw(HwmfGraphics ctx)
Apply the record settings to the graphics context
|
protected java.util.List<HwmfPalette.PaletteEntry> |
getPaletteCopy() |
protected int |
getPaletteStart() |
int |
init(LittleEndianInputStream leis,
long recordSize,
int recordFunction)
Init record from stream
|
protected int |
readPaletteEntries(LittleEndianInputStream leis,
int nbrOfEntries) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWmfRecordType
applyObject
protected int start
protected final java.util.List<HwmfPalette.PaletteEntry> palette
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws java.io.IOException
HwmfRecord
init
in interface HwmfRecord
leis
- the little endian input streamjava.io.IOException
protected int readPaletteEntries(LittleEndianInputStream leis, int nbrOfEntries) throws java.io.IOException
java.io.IOException
public final void draw(HwmfGraphics ctx)
HwmfRecord
draw
in interface HwmfRecord
ctx
- the graphics context to modifyprotected java.util.List<HwmfPalette.PaletteEntry> getPaletteCopy()
protected int getPaletteStart()
Copyright 2019 The Apache Software Foundation or its licensors, as applicable.