public static class HwmfText.WmfExtTextOut extends java.lang.Object implements HwmfRecord, HwmfCharsetAware
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Rectangle2D |
bounds
An optional 8-byte Rect Object (section 2.2.2.18) that defines the dimensions, in logical coordinates, of a rectangle that is used for clipping, opaquing, or both.
(一个可选的 8 字节矩形对象(第 2.2.2.18 节),它以逻辑坐标定义用于剪切、不透明或两者兼有的矩形的尺寸。)
|
protected java.util.function.Supplier<java.nio.charset.Charset> |
charsetProvider |
protected java.util.List<java.lang.Integer> |
dx
An optional array of 16-bit signed integers that indicate the distance between origins of adjacent character cells.
(一个可选的 16 位有符号整数数组,指示相邻字符单元的原点之间的距离。)
|
protected HwmfText.WmfExtTextOutOptions |
options
A 16-bit unsigned integer that defines the use of the application-defined rectangle.
(一个 16 位无符号整数,用于定义应用程序定义的矩形的使用。)
|
protected byte[] |
rawTextBytes
A variable-length string that specifies the text to be drawn.
(一个可变长度的字符串,指定要绘制的文本。)
|
protected java.awt.geom.Point2D |
reference
The location, in logical units, where the text string is to be placed.
(放置文本字符串的位置(以逻辑单位表示)。)
|
protected int |
stringLength
A 16-bit signed integer that defines the length of the string.
(定义字符串长度的 16 位有符号整数。)
|
Modifier | Constructor and Description |
---|---|
|
WmfExtTextOut() |
protected |
WmfExtTextOut(HwmfText.WmfExtTextOutOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
draw(HwmfGraphics ctx)
Apply the record settings to the graphics context
(将记录设置应用于图形上下文)
|
java.awt.geom.Rectangle2D |
getBounds() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HwmfText.WmfExtTextOutOptions |
getOptions() |
java.awt.geom.Point2D |
getReference() |
java.lang.String |
getText(java.nio.charset.Charset charset) |
HwmfRecordType |
getWmfRecordType() |
int |
init(LittleEndianInputStream leis, long recordSize, int recordFunction)
Init record from stream
(从流初始化记录)
|
protected boolean |
isUnicode() |
void |
setCharsetProvider(java.util.function.Supplier<java.nio.charset.Charset> provider) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericRecordType
getGenericChildren
protected final java.awt.geom.Point2D reference
protected int stringLength
protected final HwmfText.WmfExtTextOutOptions options
protected final java.awt.geom.Rectangle2D bounds
protected byte[] rawTextBytes
protected final java.util.List<java.lang.Integer> dx
protected java.util.function.Supplier<java.nio.charset.Charset> charsetProvider
public WmfExtTextOut()
protected WmfExtTextOut(HwmfText.WmfExtTextOutOptions options)
public HwmfRecordType getWmfRecordType()
getWmfRecordType
in interface
HwmfRecord
(接口 HwmfRecord 中的 getWmfRecordType)
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws java.io.IOException
HwmfRecord
init
in interface
HwmfRecord
(接口 HwmfRecord 中的 init)
leis
- the little endian input stream
(leis - 小端输入流)
java.io.IOException
(java.io.IOException)
public void draw(HwmfGraphics ctx)
HwmfRecord
draw
in interface
HwmfRecord
(在接口 HwmfRecord 中绘制)
ctx
- the graphics context to modify
(ctx - 要修改的图形上下文)
public java.lang.String getText(java.nio.charset.Charset charset) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public java.awt.geom.Point2D getReference()
public java.awt.geom.Rectangle2D getBounds()
public HwmfText.WmfExtTextOutOptions getOptions()
protected boolean isUnicode()
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)
public void setCharsetProvider(java.util.function.Supplier<java.nio.charset.Charset> provider)
setCharsetProvider
in interface
HwmfCharsetAware
(接口 HwmfCharsetAware 中的 setCharsetProvider)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.