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 java.lang.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 long
getbOpenGL()
java.awt.geom.Rectangle2D
getBoundsRectangle()
long
getBytes()
long
getCbPixelFormat()
java.lang.String
getDescription()
java.awt.geom.Dimension2D
getDeviceDimension()
HemfRecordType
getEmfRecordType()
java.awt.geom.Rectangle2D
getFrameRectangle()
java.util.Map<java.lang.String,java.util.function.Supplier<?>>
getGenericProperties()
int
getHandles()
java.awt.geom.Dimension2D
getMicroDimension()
java.awt.geom.Dimension2D
getMilliDimension()
long
getNPalEntries()
long
getOffPixelFormat()
long
getRecords()
long
init(LittleEndianInputStream leis, long recordSize, long recordId)
Init record from streamboolean
isHasExtension1()
boolean
isHasExtension2()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
equals, 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 java.awt.geom.Rectangle2D getBoundsRectangle()
-
getFrameRectangle
public java.awt.geom.Rectangle2D getFrameRectangle()
-
getBytes
public long getBytes()
-
getRecords
public long getRecords()
-
getHandles
public int getHandles()
-
getDescription
public java.lang.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 java.awt.geom.Dimension2D getDeviceDimension()
-
getMilliDimension
public java.awt.geom.Dimension2D getMilliDimension()
-
getMicroDimension
public java.awt.geom.Dimension2D getMicroDimension()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getEmfRecordType
public HemfRecordType getEmfRecordType()
- Specified by:
getEmfRecordType
in interfaceHemfRecord
-
init
public long init(LittleEndianInputStream leis, long recordSize, long recordId) throws java.io.IOException
Description copied from interface:HemfRecord
Init record from stream- Specified by:
init
in interfaceHemfRecord
- Parameters:
leis
- the little endian input streamrecordSize
- the size limit for this recordrecordId
- the id of theHemfRecordType
- Returns:
- count of processed bytes
- Throws:
java.io.IOException
- when the inputstream is malformed
-
getGenericProperties
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
- Specified by:
getGenericProperties
in interfaceGenericRecord
-
-