The text lines are static and are created using a single format and a single paragraph. The lines are created to fit in the specified bounding rectangle.
The StringTextLineFactory provides an efficient way to create TextLines, since it reuses single TextFlow, ParagraphElement, SpanElement, and ContainerController objects across many repeated invocations. You can create a single factory, and use it again and again. You can also reuse all the parts that are the same each time you call it; for instance, you can reuse the various formats and the bounds.
Note: To create static lines that use multiple formats or paragraphs, or that include inline graphics, use a TextFlowTextLineFactory and a TextFlow object.
The text lines are created using the currently assigned text and formats and
are composed to fit the bounds assigned to the
To create a different set of lines, change any properties desired and call
Note that the scroll policies of the factory will control how many lines are generated.
To produce TextLines, call
Note: Application code does not typically need to create or use a TextLineFactoryBase object directly. Use one of the derived text factory classes instead.
Note: Application code does not typically need to create or use a TextLineFactoryBase object directly. Use one of the derived text factory classes instead.
Note: Truncated lines are not included in the size calculation.
If set to
If the
By default, the ISWFContext implementation is this FlowComposerBase object. Applications can provide a custom implementation to use fonts embedded in a different SWF file or to cache and reuse text lines.
If set to
If the
The text lines are static and created fit in a single bounding rectangle, but can have multiple paragraphs and formats as well as inline graphics. To create TextLine objects directly from a string, use StringTextLineFactory.
Note: When using inline graphics, the
The text lines are composed to fit the bounds assigned to the
Note that the scroll policies of the factory will control how many lines are generated.