pt.tumba.parser.swf
Class MovieBuilder.TextBuilder

java.lang.Object
  extended by pt.tumba.parser.swf.MovieBuilder.TextBuilder
All Implemented Interfaces:
SWFText
Enclosing class:
MovieBuilder

protected class MovieBuilder.TextBuilder
extends java.lang.Object
implements SWFText

A SWFText implementation that builds a Text object

Author:
unknown

Field Summary
protected  Color color
          Description of the Field
protected  Font font
          Description of the Field
protected  boolean hasX
          Description of the Field
protected  boolean hasY
          Description of the Field
protected  double size
          Description of the Field
protected  Text t
          Description of the Field
protected  double x
          Description of the Field
protected  double y
          Description of the Field
 
Constructor Summary
protected MovieBuilder.TextBuilder(Text text)
          Constructor for the TextBuilder object
 
Method Summary
 void color(Color color)
          SWFText interface
 void done()
          SWFText interface
 void font(int fontId, int textHeight)
          SWFText interface
 void setX(int x)
          SWFText interface
 void setY(int y)
          SWFText interface
 void text(int[] glyphIndices, int[] glyphAdvances)
          SWFText interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

t

protected Text t
Description of the Field


font

protected Font font
Description of the Field


size

protected double size
Description of the Field


color

protected Color color
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

Constructor Detail

MovieBuilder.TextBuilder

protected MovieBuilder.TextBuilder(Text text)
Constructor for the TextBuilder object

Parameters:
text - Description of the Parameter
Method Detail

font

public void font(int fontId,
                 int textHeight)
SWFText interface

Specified by:
font in interface SWFText
Parameters:
fontId - Description of the Parameter
textHeight - Description of the Parameter

color

public void color(Color color)
SWFText interface

Specified by:
color in interface SWFText
Parameters:
color - Description of the Parameter

setX

public void setX(int x)
SWFText interface

Specified by:
setX in interface SWFText
Parameters:
x - The new x value

setY

public void setY(int y)
SWFText interface

Specified by:
setY in interface SWFText
Parameters:
y - The new y value

text

public void text(int[] glyphIndices,
                 int[] glyphAdvances)
SWFText interface

Specified by:
text in interface SWFText
Parameters:
glyphIndices - Description of the Parameter
glyphAdvances - Description of the Parameter

done

public void done()
SWFText interface

Specified by:
done in interface SWFText