org.apache.poi.hemf.record
Class HemfHeader

java.lang.Object
  extended by org.apache.poi.hemf.record.HemfHeader
All Implemented Interfaces:
HemfRecord

@Internal
public class HemfHeader
extends java.lang.Object
implements HemfRecord

Extracts the full header from EMF files.

See Also:
ImageHeaderEMF

Constructor Summary
HemfHeader()
           
 
Method Summary
 long getbOpenGL()
           
 java.awt.Rectangle getBoundsRectangle()
           
 long getBytes()
           
 long getCbPixelFormat()
           
 java.awt.Rectangle getFrameRectangle()
           
 int getHandles()
           
 long getMicrometersX()
           
 long getMicrometersY()
           
 long getnDescription()
           
 long getnPalEntries()
           
 long getOffDescription()
           
 long getOffPixelFormat()
           
 long getRecords()
           
 HemfRecordType getRecordType()
           
 long init(LittleEndianInputStream leis, long recordId, long recordSize)
          Init record from stream
 boolean isHasExtension1()
           
 boolean isHasExtension2()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HemfHeader

public HemfHeader()
Method Detail

getBoundsRectangle

public java.awt.Rectangle getBoundsRectangle()

getFrameRectangle

public java.awt.Rectangle getFrameRectangle()

getBytes

public long getBytes()

getRecords

public long getRecords()

getHandles

public int getHandles()

getnDescription

public long getnDescription()

getOffDescription

public long getOffDescription()

getnPalEntries

public long getnPalEntries()

isHasExtension1

public boolean isHasExtension1()

getCbPixelFormat

public long getCbPixelFormat()

getOffPixelFormat

public long getOffPixelFormat()

getbOpenGL

public long getbOpenGL()

isHasExtension2

public boolean isHasExtension2()

getMicrometersX

public long getMicrometersX()

getMicrometersY

public long getMicrometersY()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRecordType

public HemfRecordType getRecordType()
Specified by:
getRecordType in interface HemfRecord

init

public long init(LittleEndianInputStream leis,
                 long recordId,
                 long recordSize)
          throws java.io.IOException
Description copied from interface: HemfRecord
Init record from stream

Specified by:
init in interface HemfRecord
Parameters:
leis - the little endian input stream
Returns:
count of processed bytes
Throws:
java.io.IOException


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