pt.tumba.parser.swf
Class TagWriter.SWFTextImpl

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

protected class TagWriter.SWFTextImpl
extends java.lang.Object
implements SWFText

Description of the Class

Author:
unknown

Field Summary
protected  java.lang.Object[] currentStyleRecord
          Description of the Field
protected  boolean hasAlpha
          Description of the Field
protected  int maxAdvance
          Description of the Field
protected  int maxGlyphIndex
          Description of the Field
protected  java.util.List recs
          Description of the Field
 
Constructor Summary
TagWriter.SWFTextImpl(boolean hasAlpha)
          Constructor for the SWFTextImpl object
 
Method Summary
 void color(Color color)
          SWFText interface
 void done()
          SWFText interface
 void font(int fontId, int textHeight)
          SWFText interface
protected  java.lang.Object[] getCurrentStyle()
          Gets the currentStyle attribute of the SWFTextImpl object
 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

hasAlpha

protected boolean hasAlpha
Description of the Field


maxGlyphIndex

protected int maxGlyphIndex
Description of the Field


maxAdvance

protected int maxAdvance
Description of the Field


recs

protected java.util.List recs
Description of the Field


currentStyleRecord

protected java.lang.Object[] currentStyleRecord
Description of the Field

Constructor Detail

TagWriter.SWFTextImpl

public TagWriter.SWFTextImpl(boolean hasAlpha)
Constructor for the SWFTextImpl object

Parameters:
hasAlpha - Description of the Parameter
Method Detail

getCurrentStyle

protected java.lang.Object[] getCurrentStyle()
Gets the currentStyle attribute of the SWFTextImpl object

Returns:
The currentStyle value

font

public void font(int fontId,
                 int textHeight)
          throws java.io.IOException
SWFText interface

Specified by:
font in interface SWFText
Parameters:
fontId - Description of the Parameter
textHeight - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

color

public void color(Color color)
           throws java.io.IOException
SWFText interface

Specified by:
color in interface SWFText
Parameters:
color - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

setX

public void setX(int x)
          throws java.io.IOException
SWFText interface

Specified by:
setX in interface SWFText
Parameters:
x - The new x value
Throws:
java.io.IOException - Description of the Exception

setY

public void setY(int y)
          throws java.io.IOException
SWFText interface

Specified by:
setY in interface SWFText
Parameters:
y - The new y value
Throws:
java.io.IOException - Description of the Exception

text

public void text(int[] glyphIndices,
                 int[] glyphAdvances)
          throws java.io.IOException
SWFText interface

Specified by:
text in interface SWFText
Parameters:
glyphIndices - Description of the Parameter
glyphAdvances - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

done

public void done()
          throws java.io.IOException
SWFText interface

Specified by:
done in interface SWFText
Throws:
java.io.IOException - Description of the Exception