Package org.apache.poi.hwmf.record
Class HwmfPalette.WmfPaletteParent
java.lang.Object
org.apache.poi.hwmf.record.HwmfPalette.WmfPaletteParent
- All Implemented Interfaces:
GenericRecord,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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<HwmfPalette.PaletteEntry>protected intStart (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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddraw(HwmfGraphics ctx) Apply the record settings to the graphics contextintinit(LittleEndianInputStream leis, long recordSize, int recordFunction) Init record from streamprotected intreadPaletteEntries(LittleEndianInputStream leis, int nbrOfEntries) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildrenMethods inherited from interface org.apache.poi.hwmf.record.HwmfObjectTableEntry
applyObjectMethods inherited from interface org.apache.poi.hwmf.record.HwmfRecord
getGenericRecordType, getWmfRecordType
-
Field Details
-
start
protected int startStart (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. When used with META_CREATEPALETTE, it MUST be 0x0300 -
palette
-
-
Constructor Details
-
WmfPaletteParent
public WmfPaletteParent()
-
-
Method Details
-
init
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws IOException Description copied from interface:HwmfRecordInit record from stream- Specified by:
initin interfaceHwmfRecord- Parameters:
leis- the little endian input stream- Returns:
- count of processed bytes
- Throws:
IOException
-
readPaletteEntries
- Throws:
IOException
-
draw
Description copied from interface:HwmfRecordApply the record settings to the graphics context- Specified by:
drawin interfaceHwmfRecord- Parameters:
ctx- the graphics context to modify
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-