com.flagstone.transform.text
Interface StaticTextTag

All Superinterfaces:
Copyable<MovieTag>, DefineTag, MovieTag, SWFEncodeable
All Known Implementing Classes:
DefineText, DefineText2

public interface StaticTextTag
extends DefineTag

The StaticTextTag interface provides a common set of methods for accessing the bounding box, coordinate transform and TextSpans for the different static text definition: DefineText, DefineText2.


Method Summary
 Bounds getBounds()
          Get the bounding rectangle that completely enclosed the text.
 List<TextSpan> getSpans()
          Get the list of text spans that define the text to be displayed.
 CoordTransform getTransform()
          Get the coordinate transform that controls the size, location and orientation of the text when it is displayed.
 void setBounds(Bounds rect)
          Sets the bounding rectangle that encloses the text.
 void setSpans(List<TextSpan> list)
          Sets the list of text spans that define the text to be displayed.
 void setTransform(CoordTransform matrix)
          Sets the coordinate transform that changes the orientation and size of the text displayed.
 
Methods inherited from interface com.flagstone.transform.DefineTag
getIdentifier, setIdentifier
 
Methods inherited from interface com.flagstone.transform.coder.SWFEncodeable
encode, prepareToEncode
 
Methods inherited from interface com.flagstone.transform.coder.Copyable
copy
 

Method Detail

getBounds

Bounds getBounds()
Get the bounding rectangle that completely enclosed the text.

Returns:
the Bounds that encloses the text.

setBounds

void setBounds(Bounds rect)
Sets the bounding rectangle that encloses the text.

Parameters:
rect - set the bounding rectangle for the text. Must not be null.

getTransform

CoordTransform getTransform()
Get the coordinate transform that controls the size, location and orientation of the text when it is displayed.

Returns:
the coordinate transform used to position the text.

setTransform

void setTransform(CoordTransform matrix)
Sets the coordinate transform that changes the orientation and size of the text displayed.

Parameters:
matrix - an CoordTransform to change the size and orientation of the text. Must not be null.

getSpans

List<TextSpan> getSpans()
Get the list of text spans that define the text to be displayed.

Returns:
the list of text blocks.

setSpans

void setSpans(List<TextSpan> list)
Sets the list of text spans that define the text to be displayed.

Parameters:
list - a list of TextSpan objects that define the text to be displayed. Must not be null.


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.