java.lang .Object org.openlaszlo.iv.flash.api .FlashItem org.openlaszlo.iv.flash.api .FlashObject org.openlaszlo.iv.flash.api .FlashDef org.openlaszlo.iv.flash.api.text .LazyText LazyText final public class LazyText extends FlashDef implements TextBlock (Code) This class represents DefineText tag.
Basically it is alredy laid out text.
author: Dmitry SkavishSee Also: Text
HAS_COLOR final public static int HAS_COLOR (Code)
HAS_FONT final public static int HAS_FONT (Code)
HAS_XOFFSET final public static int HAS_XOFFSET (Code)
HAS_YOFFSET final public static int HAS_YOFFSET (Code)
withAlpha public boolean withAlpha(Code)
LazyText public LazyText()(Code)
LazyText public LazyText(boolean withAlpha)(Code)
_isConstant protected boolean _isConstant()(Code)
addTextRecord public void addTextRecord(TextRecord record)(Code) Adds new text record to this text
Parameters: record - new text record to be added
addTextStyleChangeRecord public void addTextStyleChangeRecord(TextStyleChangeRecord record)(Code) Adds new text style change record to this text
Parameters: record - new text style change record to be added
changeFont public void changeFont(Font old_font, Font new_font)(Code) Updates records' font.
Changes one specified font into another in all records.
In text records also updates indexes.
Parameters: old_font - old fontParameters: new_font - new font
createText public Text createText()(Code) if x == 0 && prevX was at the end then append
if x == 0 && prevX was NOT at the end then new item
if x != 0 then check if rest of x != 0 then if they are equal it's 'center'
getTag public int getTag()(Code)
getTextRecords public IVVector getTextRecords(Font font)(Code) Returns vector of
TextRecord s from this text
of specified font.
Parameters: font - font of text records to be returned text records of specified font
layout public void layout()(Code) Layouts this text.
Does nothing, because the text is already laid out.