Package org.apache.poi.hwmf.record
Class HwmfText.WmfExtTextOut
java.lang.Object
org.apache.poi.hwmf.record.HwmfText.WmfExtTextOut
- All Implemented Interfaces:
GenericRecord,HwmfRecord,HwmfCharsetAware
- Direct Known Subclasses:
HemfText.EmfExtTextOutA
- Enclosing class:
- HwmfText
The META_EXTTEXTOUT record outputs text by using the font, background color, and text color that
are defined in the playback device context. Optionally, dimensions can be provided for clipping,
opaquing, or both.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Rectangle2DAn 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.An optional array of 16-bit signed integers that indicate the distance between origins of adjacent character cells.protected final HwmfText.WmfExtTextOutOptionsA 16-bit unsigned integer that defines the use of the application-defined rectangle.protected byte[]A variable-length string that specifies the text to be drawn.protected final Point2DThe location, in logical units, where the text string is to be placed.protected intA 16-bit signed integer that defines the length of the string. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(HwmfGraphics ctx) Apply the record settings to the graphics contextintinit(LittleEndianInputStream leis, long recordSize, int recordFunction) Init record from streamprotected booleanvoidsetCharsetProvider(Supplier<Charset> provider) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildrenMethods inherited from interface org.apache.poi.hwmf.record.HwmfRecord
getGenericRecordType
-
Field Details
-
reference
The location, in logical units, where the text string is to be placed. -
stringLength
protected int stringLengthA 16-bit signed integer that defines the length of the string. -
options
A 16-bit unsigned integer that defines the use of the application-defined rectangle. This member can be a combination of one or more values in the ExtTextOutOptions Flags (ETO_*) -
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. The corners are given in the order left, top, right, bottom. Each value is a 16-bit signed integer that defines the coordinate, in logical coordinates, of the upper-left corner of the rectangle -
rawTextBytes
protected byte[] rawTextBytesA variable-length string that specifies the text to be drawn. The string does not need to be null-terminated, because StringLength specifies the length of the string. If the length is odd, an extra byte is placed after it so that the following member (optional Dx) is aligned on a 16-bit boundary. -
dx
An optional array of 16-bit signed integers that indicate the distance between origins of adjacent character cells. For example, Dx[i] logical units separate the origins of character cell i and character cell i + 1. If this field is present, there MUST be the same number of values as there are characters in the string. -
charsetProvider
-
-
Constructor Details
-
WmfExtTextOut
public WmfExtTextOut() -
WmfExtTextOut
-
-
Method Details
-
getWmfRecordType
- Specified by:
getWmfRecordTypein interfaceHwmfRecord
-
init
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws IOException Description copied from interface:HwmfRecordInit record from stream- Specified by:
initin interfaceHwmfRecord- Parameters:
leis- the little endian input stream- Returns:
- count of processed bytes
- Throws:
IOException
-
draw
Description copied from interface:HwmfRecordApply the record settings to the graphics context- Specified by:
drawin interfaceHwmfRecord- Parameters:
ctx- the graphics context to modify
-
getText
- Throws:
IOException
-
getReference
-
getBounds
-
getOptions
-
isUnicode
protected boolean isUnicode() -
toString
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
setCharsetProvider
- Specified by:
setCharsetProviderin interfaceHwmfCharsetAware
-