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.
|
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.
|
protected HwmfText.WmfExtTextOutOptions |
options
A 16-bit unsigned integer that defines the use of the application-defined
rectangle.
|
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.
|
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
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws java.io.IOException
HwmfRecord
init
in interface HwmfRecord
leis
- the little endian input streamjava.io.IOException
public void draw(HwmfGraphics ctx)
HwmfRecord
draw
in interface HwmfRecord
ctx
- the graphics context to modifypublic java.lang.String getText(java.nio.charset.Charset charset) throws 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
public void setCharsetProvider(java.util.function.Supplier<java.nio.charset.Charset> provider)
setCharsetProvider
in interface HwmfCharsetAware
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.