Package org.apache.poi.hemf.record.emf
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:
ImageHeaderEMF
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.poi.hemf.record.emf.HemfRecord
HemfRecord.RenderBounds
-
-
Constructor Summary
Constructors Constructor Description HemfHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetbOpenGL()Rectangle2DgetBoundsRectangle()longgetBytes()longgetCbPixelFormat()StringgetDescription()Dimension2DgetDeviceDimension()HemfRecordTypegetEmfRecordType()Rectangle2DgetFrameRectangle()Map<String,Supplier<?>>getGenericProperties()intgetHandles()Dimension2DgetMicroDimension()Dimension2DgetMilliDimension()longgetNPalEntries()longgetOffPixelFormat()longgetRecords()longinit(LittleEndianInputStream leis, long recordSize, long recordId)Init record from streambooleanisHasExtension1()booleanisHasExtension2()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
Methods inherited from interface org.apache.poi.hemf.record.emf.HemfRecord
calcBounds, draw, getGenericRecordType, setHeader
-
-
-
-
Method Detail
-
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()
-
getEmfRecordType
public HemfRecordType getEmfRecordType()
- Specified by:
getEmfRecordTypein interfaceHemfRecord
-
init
public long init(LittleEndianInputStream leis, long recordSize, long recordId) throws IOException
Description copied from interface:HemfRecordInit record from stream- Specified by:
initin interfaceHemfRecord- Parameters:
leis- the little endian input streamrecordSize- the size limit for this recordrecordId- the id of theHemfRecordType- Returns:
- count of processed bytes
- Throws:
IOException- when the inputstream is malformed
-
getGenericProperties
public Map<String,Supplier<?>> getGenericProperties()
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
-