Package org.apache.poi.hemf.record.emf
Class HemfText.EmfExtTextOutA
java.lang.Object
org.apache.poi.hwmf.record.HwmfText.WmfExtTextOut
org.apache.poi.hemf.record.emf.HemfText.EmfExtTextOutA
- All Implemented Interfaces:
GenericRecord,HemfRecord,HwmfRecord,HwmfCharsetAware
- Direct Known Subclasses:
HemfText.EmfExtTextOutW
- Enclosing class:
HemfText
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.poi.hemf.record.emf.HemfRecord
HemfRecord.RenderBounds -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(HwmfGraphics ctx) Apply the record settings to the graphics contextgetScale()To be implemented! We need to get the current character set from the current font forHemfText.EmfExtTextOutA, which has to be tracked in the playback device.longinit(LittleEndianInputStream leis, long recordSize, long recordId) Init record from streamtoString()Methods inherited from class org.apache.poi.hwmf.record.HwmfText.WmfExtTextOut
getBounds, getOptions, getReference, getWmfRecordType, init, setCharsetProviderMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildrenMethods inherited from interface org.apache.poi.hemf.record.emf.HemfRecord
calcBounds, draw, setHeader
-
Constructor Details
-
EmfExtTextOutA
public EmfExtTextOutA()
-
-
Method Details
-
getEmfRecordType
- Specified by:
getEmfRecordTypein interfaceHemfRecord
-
init
Description copied from interface:HemfRecordInit record from stream- Specified by:
initin interfaceHemfRecord- Parameters:
leis- the little endian input streamrecordSize- the size limit for this recordrecordId- the id of theHemfRecordType- Returns:
- count of processed bytes
- Throws:
IOException- when the inputstream is malformed
-
getText
To be implemented! We need to get the current character set from the current font forHemfText.EmfExtTextOutA, which has to be tracked in the playback device. ForHemfText.EmfExtTextOutW, the charset is "UTF-16LE"- Overrides:
getTextin classHwmfText.WmfExtTextOut- Parameters:
charset- the charset to be used to decode the character bytes- Returns:
- text from this text element
- Throws:
IOException- if the charset is not compatible to the underlying bytes
-
getGraphicsMode
-
getScale
-
draw
Description copied from interface:HwmfRecordApply the record settings to the graphics context- Specified by:
drawin interfaceHwmfRecord- Overrides:
drawin classHwmfText.WmfExtTextOut- Parameters:
ctx- the graphics context to modify
-
toString
- Overrides:
toStringin classHwmfText.WmfExtTextOut
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord- Overrides:
getGenericPropertiesin classHwmfText.WmfExtTextOut
-
getGenericRecordType
- Specified by:
getGenericRecordTypein interfaceGenericRecord- Specified by:
getGenericRecordTypein interfaceHemfRecord- Specified by:
getGenericRecordTypein interfaceHwmfRecord
-