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 Object implements HwmfRecord, HwmfObjectTableEntry
  • Constructor Details

    • WmfPaletteParent

      public WmfPaletteParent()
  • Method Details

    • init

      public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws 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:
      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 List<HwmfPalette.PaletteEntry> getPaletteCopy()
    • getPaletteStart

      protected int getPaletteStart()