org.apache.poi.hwmf.record
Class HwmfPalette.WmfPaletteParent

java.lang.Object
  extended by 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
HwmfPalette.WmfPaletteParent()
           
 
Method Summary
 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
 
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.HwmfRecord
getRecordType
 
Methods inherited from interface org.apache.poi.hwmf.record.HwmfObjectTableEntry
applyObject
 

Constructor Detail

HwmfPalette.WmfPaletteParent

public HwmfPalette.WmfPaletteParent()
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 interface HwmfRecord
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 interface HwmfRecord
Parameters:
ctx - the graphics context to modify

getPaletteCopy

protected java.util.List<HwmfPalette.PaletteEntry> getPaletteCopy()

getPaletteStart

protected int getPaletteStart()


Copyright 2017 The Apache Software Foundation or its licensors, as applicable.