pt.tumba.parser.swf
Class Text.Row

java.lang.Object
  extended by pt.tumba.parser.swf.Text.Row
Enclosing class:
Text

public static class Text.Row
extends java.lang.Object

A set of contiguous characters in one font, size and color.

Author:
unknown

Field Summary
protected  Font.Chars chars
          Description of the Field
protected  Color color
          Description of the Field
protected  boolean hasX
          Description of the Field
protected  boolean hasY
          Description of the Field
protected  double x
          Description of the Field
protected  double y
          Description of the Field
 
Constructor Summary
Text.Row(Font.Chars chars, Color color, double x, double y, boolean hasX, boolean hasY)
           
 
Method Summary
 Font.Chars getChars()
          Gets the chars attribute of the Row object
 Color getColor()
          Gets the color attribute of the Row object
 double getX()
          Gets the x attribute of the Row object
 double getY()
          Gets the y attribute of the Row object
 boolean hasX()
          Description of the Method
 boolean hasY()
          Description of the Method
protected  void write(SWFText text, boolean changeColor, boolean changeFont)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chars

protected Font.Chars chars
Description of the Field


x

protected double x
Description of the Field


y

protected double y
Description of the Field


hasX

protected boolean hasX
Description of the Field


hasY

protected boolean hasY
Description of the Field


color

protected Color color
Description of the Field

Constructor Detail

Text.Row

public Text.Row(Font.Chars chars,
                Color color,
                double x,
                double y,
                boolean hasX,
                boolean hasY)
Parameters:
chars - the characters to display
color - may be AlphaColor.
x - new X position for text - only valid if hasX is true
y - new Y position for text - only valid if hasY is true
hasX - Description of the Parameter
hasY - Description of the Parameter
Method Detail

getChars

public Font.Chars getChars()
Gets the chars attribute of the Row object

Returns:
The chars value

getX

public double getX()
Gets the x attribute of the Row object

Returns:
The x value

getY

public double getY()
Gets the y attribute of the Row object

Returns:
The y value

getColor

public Color getColor()
Gets the color attribute of the Row object

Returns:
The color value

hasX

public boolean hasX()
Description of the Method

Returns:
Description of the Return Value

hasY

public boolean hasY()
Description of the Method

Returns:
Description of the Return Value

write

protected void write(SWFText text,
                     boolean changeColor,
                     boolean changeFont)
              throws java.io.IOException
Description of the Method

Parameters:
text - Description of the Parameter
changeColor - Description of the Parameter
changeFont - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception