Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The TextLineFactoryBase class serves as the base class for the Text Layout Framework text line factories.
Note: Application code does not typically need to create or use a TextLineFactoryBase object directly.
Use one of the derived text factory classes instead.
compositionBounds:Rectangle
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The rectangle within which text lines are created.
Implementation public function get compositionBounds():Rectangle
public function set compositionBounds(value:Rectangle):void
horizontalScrollPolicy:String
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Specifies how lines are created when the composition bounds are not large enough.
If set to ScrollPolicy.ON
or ScrollPolicy.AUTO
, all lines
are created. It is the your responsibility to scroll lines in the viewable area (and to
mask lines outside this area, if necessary). If set to ScrollPolicy.OFF
, then
only lines that fit within the composition bounds are created.
If the truncationOptions
property is set, the scroll policy is ignored
(and treated as ScrollPolicy.OFF
).
Implementation public function get horizontalScrollPolicy():String
public function set horizontalScrollPolicy(value:String):void
See also
isTruncated:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Indicates whether text was truncated when lines were last created.
Implementation public function get isTruncated():Boolean
swfContext:ISWFContext
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The ISWFContext instance used to make FTE calls as needed.
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.
Implementation public function get swfContext():ISWFContext
public function set swfContext(value:ISWFContext):void
See also
truncationOptions:TruncationOptions
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Specifies the options for truncating the text if it doesn't fit in the composition bounds.
Implementation public function get truncationOptions():TruncationOptions
public function set truncationOptions(value:TruncationOptions):void
verticalScrollPolicy:String
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Specifies how lines are created when the composition bounds are not large enough.
If set to ScrollPolicy.ON
or ScrollPolicy.AUTO
, all lines
are created. It is the your responsibility to scroll lines in the viewable area (and to
mask lines outside this area, if necessary). If set to ScrollPolicy.OFF
, then
only lines that fit within the composition bounds are created.
If the truncationOptions
property is set, the scroll policy is ignored
(and treated as ScrollPolicy.OFF
).
Implementation public function get verticalScrollPolicy():String
public function set verticalScrollPolicy(value:String):void
See also
public function TextLineFactoryBase()
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Base-class constructor for text line factories.
Note: Application code does not typically need to create or use a TextLineFactoryBase object directly.
Use one of the derived text factory classes instead.
public function getContentBounds():Rectangle
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The smallest rectangle in which the layed-out content fits.
Note: Truncated lines are not included in the size calculation.
Returns
Mon Feb 18 2013, 01:33 PM +11:00