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
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
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
getGenericRecordType, getWmfRecordType
getGenericChildren
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 modifypublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.