Class HemfHeader

java.lang.Object
org.apache.poi.hemf.record.emf.HemfHeader
All Implemented Interfaces:
GenericRecord, HemfRecord

@Internal public class HemfHeader extends Object implements HemfRecord
Extracts the full header from EMF files.
See Also:
  • Constructor Details

    • HemfHeader

      public HemfHeader()
  • Method Details

    • getBoundsRectangle

      public Rectangle2D getBoundsRectangle()
    • getFrameRectangle

      public Rectangle2D getFrameRectangle()
    • getBytes

      public long getBytes()
    • getRecords

      public long getRecords()
    • getHandles

      public int getHandles()
    • getDescription

      public String getDescription()
    • getNPalEntries

      public long getNPalEntries()
    • isHasExtension1

      public boolean isHasExtension1()
    • getCbPixelFormat

      public long getCbPixelFormat()
    • getOffPixelFormat

      public long getOffPixelFormat()
    • getbOpenGL

      public long getbOpenGL()
    • isHasExtension2

      public boolean isHasExtension2()
    • getDeviceDimension

      public Dimension2D getDeviceDimension()
    • getMilliDimension

      public Dimension2D getMilliDimension()
    • getMicroDimension

      public Dimension2D getMicroDimension()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEmfRecordType

      public HemfRecordType getEmfRecordType()
      Specified by:
      getEmfRecordType in interface HemfRecord
    • init

      public long init(LittleEndianInputStream leis, long recordSize, long recordId) throws IOException
      Description copied from interface: HemfRecord
      Init record from stream
      Specified by:
      init in interface HemfRecord
      Parameters:
      leis - the little endian input stream
      recordSize - the size limit for this record
      recordId - the id of the HemfRecordType
      Returns:
      count of processed bytes
      Throws:
      IOException - when the inputstream is malformed
    • getGenericProperties

      public Map<String,Supplier<?>> getGenericProperties()
      Specified by:
      getGenericProperties in interface GenericRecord