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, 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() |
java.lang.Enum |
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, getReference, getWmfRecordType, init, isUnicodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdraw, setHeadergetGenericChildrenprotected java.awt.geom.Rectangle2D boundsIgnored
protected HemfText.EmfGraphicsMode graphicsMode
protected final java.awt.geom.Dimension2D scale
public HemfRecordType getEmfRecordType()
getEmfRecordType in interface HemfRecordpublic long init(LittleEndianInputStream leis, long recordSize, long recordId) throws java.io.IOException
HemfRecordinit in interface HemfRecordleis - the little endian input streamrecordSize - the size limit for this recordrecordId - the id of the HemfRecordTypejava.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.WmfExtTextOutcharset - 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)
HwmfRecorddraw in interface HwmfRecorddraw in class HwmfText.WmfExtTextOutctx - the graphics context to modifypublic java.lang.String toString()
toString in class HwmfText.WmfExtTextOutpublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordgetGenericProperties in class HwmfText.WmfExtTextOutpublic java.lang.Enum getGenericRecordType()
getGenericRecordType in interface GenericRecordgetGenericRecordType in interface HemfRecordgetGenericRecordType in interface HwmfRecordCopyright 2020 The Apache Software Foundation or its licensors, as applicable.