@Internal public class HemfPlusHeader extends java.lang.Object implements HemfPlusRecord
Modifier and Type | Class and Description |
---|---|
static class |
HemfPlusHeader.EmfPlusGraphicsVersion |
static class |
HemfPlusHeader.GraphicsVersion
The GraphicsVersion enumeration defines versions of operating system graphics that are used to
create EMF+ metafiles.
|
Constructor and Description |
---|
HemfPlusHeader() |
Modifier and Type | Method and Description |
---|---|
void |
calcBounds(HemfRecord.RenderBounds holder) |
void |
draw(HemfGraphics ctx)
Draws the record, the default redirects to the parent WMF record drawing
|
long |
getEmfPlusFlags() |
HemfPlusRecordType |
getEmfPlusRecordType() |
int |
getFlags() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
long |
getLogicalDpiX() |
long |
getLogicalDpiY() |
HemfPlusHeader.EmfPlusGraphicsVersion |
getVersion() |
long |
init(LittleEndianInputStream leis,
long dataSize,
long recordId,
int flags)
Init record from stream
|
boolean |
isEmfPlusDualMode()
If set, this flag indicates that this metafile is "dual-mode", which means that it contains two sets of records,
each of which completely specifies the graphics content.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericRecordType
getGenericChildren
public HemfPlusRecordType getEmfPlusRecordType()
getEmfPlusRecordType
in interface HemfPlusRecord
public int getFlags()
getFlags
in interface HemfPlusRecord
public long init(LittleEndianInputStream leis, long dataSize, long recordId, int flags) throws java.io.IOException
HemfPlusRecord
init
in interface HemfPlusRecord
leis
- the little endian input streamdataSize
- the size limit for this recordrecordId
- the id of the HemfPlusRecordType
flags
- the record flagsjava.io.IOException
- when the inputstream is malformedpublic HemfPlusHeader.EmfPlusGraphicsVersion getVersion()
public boolean isEmfPlusDualMode()
true
if dual-mode is enabledpublic long getEmfPlusFlags()
public long getLogicalDpiX()
public long getLogicalDpiY()
public void draw(HemfGraphics ctx)
HemfPlusRecord
draw
in interface HemfPlusRecord
ctx
- the drawing contextpublic void calcBounds(HemfRecord.RenderBounds holder)
calcBounds
in interface HemfPlusRecord
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.