|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpt.tumba.parser.swf.Symbol
pt.tumba.parser.swf.Text
public class Text
A Text Symbol.
| Nested Class Summary | |
|---|---|
static class |
Text.Row
A set of contiguous characters in one font, size and color. |
| Field Summary | |
|---|---|
protected boolean |
hasAlpha
Description of the Field |
protected Transform |
matrix
Description of the Field |
protected java.util.List |
rows
Description of the Field |
| Fields inherited from class pt.tumba.parser.swf.Symbol |
|---|
id |
| Constructor Summary | |
|---|---|
Text(Transform matrix)
Create a Text Symbol which is transformed by the given matrix |
|
| Method Summary | |
|---|---|
protected int |
defineSymbol(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
Description of the Method |
java.util.List |
getRows()
Access the list of Row instances. |
Transform |
getTransform()
Get the transformation matrix applied to the text |
Text.Row |
row(Font.Chars chars,
Color color,
double x,
double y,
boolean hasX,
boolean hasY)
Add a contiguous set of characters that have the same font, size, color and vertical position. |
void |
setTransform(Transform matrix)
Sets the transform attribute of the Text object |
| Methods inherited from class pt.tumba.parser.swf.Symbol |
|---|
define, getId, getNextId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean hasAlpha
protected Transform matrix
protected java.util.List rows
| Constructor Detail |
|---|
public Text(Transform matrix)
matrix - if null then an identity transform is assumed| Method Detail |
|---|
public java.util.List getRows()
public Transform getTransform()
public void setTransform(Transform matrix)
matrix - The new transform value
public Text.Row row(Font.Chars chars,
Color color,
double x,
double y,
boolean hasX,
boolean hasY)
chars - the characters to display)x - new X position for text - only valid if hasX is truey - new Y position for text - only valid if hasY is truecolor - Description of the ParameterhasX - Description of the ParameterhasY - Description of the Parameter
protected int defineSymbol(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
throws java.io.IOException
defineSymbol in class Symbolmovie - Description of the ParametertimelineWriter - Description of the ParameterdefinitionWriter - Description of the Parameter
java.io.IOException - Description of the Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||