public static class HemfText.EmfExtTextOutA extends HwmfText.WmfExtTextOut implements HemfRecord
HemfRecord.RenderBounds| Modifier and Type | Field and Description |
|---|---|
protected Rectangle2D |
boundsIgnored |
protected HemfText.EmfGraphicsMode |
graphicsMode |
protected 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() |
Map<String,Supplier<?>> |
getGenericProperties() |
HemfRecordType |
getGenericRecordType() |
HemfText.EmfGraphicsMode |
getGraphicsMode() |
Dimension2D |
getScale() |
String |
getText(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
|
String |
toString() |
getBounds, getOptions, getReference, getWmfRecordType, init, isUnicode, setCharsetProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcalcBounds, draw, setHeadergetGenericChildrenprotected Rectangle2D boundsIgnored
protected HemfText.EmfGraphicsMode graphicsMode
protected final Dimension2D scale
public HemfRecordType getEmfRecordType()
getEmfRecordType in interface HemfRecordpublic long init(LittleEndianInputStream leis, long recordSize, long recordId) throws IOException
HemfRecordinit in interface HemfRecordleis - the little endian input streamrecordSize - the size limit for this recordrecordId - the id of the HemfRecordTypeIOException - when the inputstream is malformedpublic String getText(Charset charset) throws 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 bytesIOException - if the charset is not compatible to the underlying bytespublic HemfText.EmfGraphicsMode getGraphicsMode()
public Dimension2D getScale()
public void draw(HwmfGraphics ctx)
HwmfRecorddraw in interface HwmfRecorddraw in class HwmfText.WmfExtTextOutctx - the graphics context to modifypublic String toString()
toString in class HwmfText.WmfExtTextOutpublic Map<String,Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordgetGenericProperties in class HwmfText.WmfExtTextOutpublic HemfRecordType getGenericRecordType()
getGenericRecordType in interface GenericRecordgetGenericRecordType in interface HemfRecordgetGenericRecordType in interface HwmfRecord