@Internal public interface HemfRecord extends GenericRecord
Modifier and Type | Method and Description |
---|---|
default void |
calcBounds(java.awt.geom.Rectangle2D window,
java.awt.geom.Rectangle2D viewport,
HemfGraphics.EmfRenderState[] renderState) |
default void |
draw(HemfGraphics ctx)
Draws the record, the default redirects to the parent WMF record drawing
|
HemfRecordType |
getEmfRecordType() |
default HemfRecordType |
getGenericRecordType() |
long |
init(LittleEndianInputStream leis,
long recordSize,
long recordId)
Init record from stream
|
default void |
setHeader(HemfHeader header)
Sets the header reference, in case the record needs to refer to it
|
getGenericChildren, getGenericProperties
HemfRecordType getEmfRecordType()
long init(LittleEndianInputStream leis, long recordSize, long recordId) throws java.io.IOException
leis
- the little endian input streamrecordSize
- the size limit for this recordrecordId
- the id of the HemfRecordType
java.io.IOException
- when the inputstream is malformeddefault void draw(HemfGraphics ctx)
ctx
- the drawing contextdefault void calcBounds(java.awt.geom.Rectangle2D window, java.awt.geom.Rectangle2D viewport, HemfGraphics.EmfRenderState[] renderState)
default void setHeader(HemfHeader header)
header
- the emf headerdefault HemfRecordType getGenericRecordType()
getGenericRecordType
in interface GenericRecord
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.