@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(java.awt.geom.Rectangle2D window,
java.awt.geom.Rectangle2D viewport,
HemfGraphics.EmfRenderState[] renderState) |
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, waitgetGenericRecordTypegetGenericChildrenpublic HemfPlusRecordType getEmfPlusRecordType()
getEmfPlusRecordType in interface HemfPlusRecordpublic int getFlags()
getFlags in interface HemfPlusRecordpublic long init(LittleEndianInputStream leis, long dataSize, long recordId, int flags) throws java.io.IOException
HemfPlusRecordinit in interface HemfPlusRecordleis - the little endian input streamdataSize - the size limit for this recordrecordId - the id of the HemfPlusRecordTypeflags - 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)
HemfPlusRecorddraw in interface HemfPlusRecordctx - the drawing contextpublic void calcBounds(java.awt.geom.Rectangle2D window,
java.awt.geom.Rectangle2D viewport,
HemfGraphics.EmfRenderState[] renderState)
calcBounds in interface HemfPlusRecordpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordCopyright 2021 The Apache Software Foundation or its licensors, as applicable.