public static class HemfText.EmfExtTextOutA extends HwmfText.WmfExtTextOut implements HemfRecord
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Rectangle2D |
boundsIgnored |
protected HemfText.EmfGraphicsMode |
graphicsMode |
protected java.awt.geom.Dimension2D |
scale
The scale factor to apply along the X/Y axis to convert from page space units to .01mm units.
(沿 X/Y 轴应用的比例因子,用于从页面空间单位转换为 0.01 毫米单位。)
|
bounds, charsetProvider, dx, options, rawTextBytes, reference, stringLength
Constructor and Description |
---|
EmfExtTextOutA() |
Modifier and Type | Method and Description |
---|---|
void |
draw(HwmfGraphics ctx)
Apply the record settings to the graphics context
(将记录设置应用于图形上下文)
|
HemfRecordType |
getEmfRecordType() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HemfRecordType |
getGenericRecordType() |
HemfText.EmfGraphicsMode |
getGraphicsMode() |
java.awt.geom.Dimension2D |
getScale() |
java.lang.String |
getText(java.nio.charset.Charset charset)
To be implemented! We need to get the current character set from the current font for
HemfText.EmfExtTextOutA , which has to be tracked in the playback device.
(将要执行!我们需要从 HemfText.EmfExtTextOutA 的当前字体中获取当前字符集,它必须在播放设备中进行跟踪。)
|
long |
init(LittleEndianInputStream leis, long recordSize, long recordId)
Init record from stream
(从流初始化记录)
|
java.lang.String |
toString() |
getBounds, getOptions, getReference, getWmfRecordType, init, isUnicode, setCharsetProvider
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
calcBounds, draw, setHeader
getGenericChildren
protected java.awt.geom.Rectangle2D boundsIgnored
protected HemfText.EmfGraphicsMode graphicsMode
protected final java.awt.geom.Dimension2D scale
public HemfRecordType getEmfRecordType()
getEmfRecordType
in interface
HemfRecord
(接口 HemfRecord 中的 getEmfRecordType)
public long init(LittleEndianInputStream leis, long recordSize, long recordId) throws java.io.IOException
HemfRecord
init
in interface
HemfRecord
(在接口 HemfRecord 中初始化)
leis
- the little endian input stream
(leis - 小端输入流)
recordSize
- the size limit for this record
(recordSize - 此记录的大小限制)
recordId
- the id of the
HemfRecordType
(recordId - HemfRecordType 的 id)
java.io.IOException
- when the inputstream is malformed
(java.io.IOException - 当输入流格式错误时)
public java.lang.String getText(java.nio.charset.Charset charset) throws java.io.IOException
HemfText.EmfExtTextOutA
, which has to be tracked in the playback device. For
HemfText.EmfExtTextOutW
, the charset is "UTF-16LE"
(将要执行!我们需要从 HemfText.EmfExtTextOutA 的当前字体中获取当前字符集,它必须在播放设备中进行跟踪。对于 HemfText.EmfExtTextOutW,字符集是“UTF-16LE”)
getText
in class
HwmfText.WmfExtTextOut
charset
- the charset to be used to decode the character bytes
(charset - 用于解码字符字节的字符集)
java.io.IOException
- if the charset is not compatible to the underlying bytes
(java.io.IOException - 如果字符集与底层字节不兼容)
public HemfText.EmfGraphicsMode getGraphicsMode()
public java.awt.geom.Dimension2D getScale()
public void draw(HwmfGraphics ctx)
HwmfRecord
draw
in interface
HwmfRecord
(在接口 HwmfRecord 中绘制)
draw
in class
HwmfText.WmfExtTextOut
ctx
- the graphics context to modify
(ctx - 要修改的图形上下文)
public java.lang.String toString()
toString
in class
HwmfText.WmfExtTextOut
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
getGenericProperties
in class
HwmfText.WmfExtTextOut
public HemfRecordType getGenericRecordType()
getGenericRecordType
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericRecordType)
getGenericRecordType
in interface
HemfRecord
(接口 HemfRecord 中的 getGenericRecordType)
getGenericRecordType
in interface
HwmfRecord
(接口 HwmfRecord 中的 getGenericRecordType)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.