| 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.Text
Text | final public class Text extends FlashDef implements TextBlock(Code) | | This class represent MM Generator undocumented text tag.
It contains vector of
TextItem s.
author: Dmitry Skavish |
Constructor Summary | |
public | Text() | public | Text(boolean withAlpha) |
Method Summary | |
public TextItem | addTextItem(TextItem item) | public void | apply(Context context) | public void | changeFont(Font old_font, Font new_font) Updates records' font. | public void | collectDeps(DepsCollector dc) | public void | collectFonts(FontsCollector fc) | protected FlashItem | copyInto(FlashItem item, ScriptCopier copier) | protected void | doLayout() | public static int | gen2DBCSbytes(byte[] buf, int pos, int length, byte[] outbuf) Converts array of bytes in Macromedia Generator character format
into array of bytes suitable to be processed by encoding converters. | public static int | gen2DBCSchars(byte[] buf, int pos, int length, char[] outbuf) | public IVVector | getAllTextRecords() | public Rectangle2D | getBounds() | public int | getBoundsStyle() | public FlashItem | getCopy(ScriptCopier copier) | public AffineTransform | getMatrix() | public int | getTag() | public IVVector | getTextItems() Returns vector of all text items (
TextItem ) of this text. | public IVVector | getTextRecords(Font font) Returns vector of
TextRecord s from this text
of specified font. | public boolean | isConstant() | public void | layout() | public static Text | newText() | public static FlashDef | parse(Parser p, boolean withAlpha) Parses any DefineText tag. | public void | parseGenText(Parser p) Parses MM Generator define text tag: 0x2A. | public void | printContent(PrintStream out, String indent) | public void | setBounds(Rectangle2D bounds) | public void | setBounds(int x, int y, int width, int height) | public void | setBoundsStyle(int boundsStyle) | public void | setGenBounds(Rectangle2D bounds) | public void | setMatrix(AffineTransform matrix) | public void | setTextItems(IVVector items) Sets new vector of text items (
TextItem ) for this text. | public void | write(FlashOutput fob) | public void | write(FlashOutput fob, FlashDef def) |
JG_STYLE | final public static int JG_STYLE(Code) | | |
MM_STYLE | final public static int MM_STYLE(Code) | | |
PROPERTY_CONTROLLED | final public static int PROPERTY_CONTROLLED(Code) | | |
Text | public Text(boolean withAlpha)(Code) | | |
addTextItem | public TextItem addTextItem(TextItem item)(Code) | | Adds new text item to this text
Parameters: item - new text item to be added added text item |
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 font Parameters: new_font - new font |
doLayout | protected void doLayout()(Code) | | |
gen2DBCSbytes | public static int gen2DBCSbytes(byte[] buf, int pos, int length, byte[] outbuf)(Code) | | Converts array of bytes in Macromedia Generator character format
into array of bytes suitable to be processed by encoding converters.
Chars are considered to be in broken DBCS, result is suitable to be
converted to UNICODE.
Parameters: buf - array of bytes in MM Generator char format Parameters: pos - position in this array Parameters: length - length of this array Parameters: outbuf - output buffer suitable to be converted to Unicode size of output buffer |
gen2DBCSchars | public static int gen2DBCSchars(byte[] buf, int pos, int length, char[] outbuf)(Code) | | Converts array of bytes in Macromedia Generator character format
into array of DBCS bytes
Chars are considered to be in broken DBCS, result is DBCS
Parameters: buf - array of bytes in MM Generator char format Parameters: pos - position in this array Parameters: length - length of this array Parameters: outbuf - output buffer, array od DBCS chars size of output buffer |
getBoundsStyle | public int getBoundsStyle()(Code) | | |
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 |
isConstant | public boolean isConstant()(Code) | | |
layout | public void layout()(Code) | | Layout this text
|
parse | public static FlashDef parse(Parser p, boolean withAlpha)(Code) | | Parses any DefineText tag.
If current parsed file is not generator template
then parse text lazy (
LazyText ).
Parameters: p - parser to parse with Parameters: withAlpha - with alpha or not LazyText or Text |
parseGenText | public void parseGenText(Parser p)(Code) | | Parses MM Generator define text tag: 0x2A.
Creates vector of TextItems
|
setBounds | public void setBounds(int x, int y, int width, int height)(Code) | | |
setBoundsStyle | public void setBoundsStyle(int boundsStyle)(Code) | | |
setTextItems | public void setTextItems(IVVector items)(Code) | | Sets new vector of text items (
TextItem ) for this text.
Parameters: items - new vector of TextItem |
|
|