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.
|
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. |
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
public long init(LittleEndianInputStream leis, long recordSize, long recordId) throws java.io.IOException
HemfRecord
init
in interface HemfRecord
leis
- the little endian input streamrecordSize
- the size limit for this recordrecordId
- the id of the HemfRecordType
java.io.IOException
- when the inputstream is malformedpublic 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"getText
in class HwmfText.WmfExtTextOut
charset
- the charset to be used to decode the character bytesjava.io.IOException
- if the charset is not compatible to the underlying bytespublic HemfText.EmfGraphicsMode getGraphicsMode()
public java.awt.geom.Dimension2D getScale()
public void draw(HwmfGraphics ctx)
HwmfRecord
draw
in interface HwmfRecord
draw
in class HwmfText.WmfExtTextOut
ctx
- the graphics context to modifypublic 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
getGenericProperties
in class HwmfText.WmfExtTextOut
public HemfRecordType getGenericRecordType()
getGenericRecordType
in interface GenericRecord
getGenericRecordType
in interface HemfRecord
getGenericRecordType
in interface HwmfRecord
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.