@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.
(GraphicsVersion 枚举定义了用于创建 EMF+ 图元文件的操作系统图形版本。)
|
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
(绘制记录,默认重定向到父WMF记录绘制)
|
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
(接口 HemfPlusRecord 中的 getEmfPlusRecordType)
public int getFlags()
getFlags
in interface
HemfPlusRecord
(接口 HemfPlusRecord 中的 getFlags)
public long init(LittleEndianInputStream leis, long dataSize, long recordId, int flags) throws java.io.IOException
HemfPlusRecord
init
in interface
HemfPlusRecord
(在接口 HemfPlusRecord 中初始化)
leis
- the little endian input stream
(leis - 小端输入流)
dataSize
- the size limit for this record
(dataSize - 此记录的大小限制)
recordId
- the id of the
HemfPlusRecordType
(recordId - HemfPlusRecordType 的 id)
flags
- the record flags
(flags - 记录标志)
java.io.IOException
- when the inputstream is malformed
(java.io.IOException - 当输入流格式错误时)
public HemfPlusHeader.EmfPlusGraphicsVersion getVersion()
public boolean isEmfPlusDualMode()
true
if dual-mode is enabled
(如果启用双模式,则为 true)
public long getEmfPlusFlags()
public long getLogicalDpiX()
public long getLogicalDpiY()
public void draw(HemfGraphics ctx)
HemfPlusRecord
draw
in interface
HemfPlusRecord
(在界面 HemfPlusRecord 中绘制)
ctx
- the drawing context
(ctx - 绘图上下文)
public void calcBounds(java.awt.geom.Rectangle2D window, java.awt.geom.Rectangle2D viewport, HemfGraphics.EmfRenderState[] renderState)
calcBounds
in interface
HemfPlusRecord
(接口 HemfPlusRecord 中的 calcBounds)
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
(接口 GenericRecord 中的 getGenericProperties)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.