pt.tumba.parser.swf
Class MovieBuilder.ShapeBuilder

java.lang.Object
  extended by pt.tumba.parser.swf.MovieBuilder.ShapeBuilder
All Implemented Interfaces:
SWFShape, SWFVectors
Direct Known Subclasses:
MovieBuilder.GlyphBuilder, MovieBuilder.MorphShapeBuilder
Enclosing class:
MovieBuilder

protected class MovieBuilder.ShapeBuilder
extends java.lang.Object
implements SWFShape

SWFShape implementation that builds a Shape

Author:
unknown

Field Summary
protected  int currx
          Description of the Field
protected  int curry
          Description of the Field
protected  Shape s
          Description of the Field
 
Constructor Summary
protected MovieBuilder.ShapeBuilder(Shape s)
          Constructor for the ShapeBuilder object
 
Method Summary
 void curve(int cx2, int cy2, int dx, int dy)
          Description of the Method
 void defineFillStyle(Color color)
          Description of the Method
 void defineFillStyle(int bitmapId, Matrix matrix, boolean clipped)
          Description of the Method
 void defineFillStyle(Matrix matrix, int[] ratios, Color[] colors, boolean radial)
          Description of the Method
 void defineLineStyle(int width, Color color)
          Description of the Method
 void done()
          Description of the Method
 void line(int dx, int dy)
          Description of the Method
 void move(int x, int y)
          Description of the Method
 void setFillStyle0(int styleIndex)
          Sets the fillStyle0 attribute of the ShapeBuilder object
 void setFillStyle1(int styleIndex)
          Sets the fillStyle1 attribute of the ShapeBuilder object
 void setLineStyle(int styleIndex)
          Sets the lineStyle attribute of the ShapeBuilder object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s

protected Shape s
Description of the Field


currx

protected int currx
Description of the Field


curry

protected int curry
Description of the Field

Constructor Detail

MovieBuilder.ShapeBuilder

protected MovieBuilder.ShapeBuilder(Shape s)
Constructor for the ShapeBuilder object

Parameters:
s - Description of the Parameter
Method Detail

done

public void done()
Description of the Method

Specified by:
done in interface SWFVectors

line

public void line(int dx,
                 int dy)
Description of the Method

Specified by:
line in interface SWFVectors
Parameters:
dx - Description of the Parameter
dy - Description of the Parameter

curve

public void curve(int cx2,
                  int cy2,
                  int dx,
                  int dy)
Description of the Method

Specified by:
curve in interface SWFVectors
Parameters:
cx - Description of the Parameter
cy - Description of the Parameter
dx - Description of the Parameter
dy - Description of the Parameter

move

public void move(int x,
                 int y)
Description of the Method

Specified by:
move in interface SWFVectors
Parameters:
x - Description of the Parameter
y - Description of the Parameter

setFillStyle0

public void setFillStyle0(int styleIndex)
Sets the fillStyle0 attribute of the ShapeBuilder object

Specified by:
setFillStyle0 in interface SWFShape
Parameters:
styleIndex - The new fillStyle0 value

setFillStyle1

public void setFillStyle1(int styleIndex)
Sets the fillStyle1 attribute of the ShapeBuilder object

Specified by:
setFillStyle1 in interface SWFShape
Parameters:
styleIndex - The new fillStyle1 value

setLineStyle

public void setLineStyle(int styleIndex)
Sets the lineStyle attribute of the ShapeBuilder object

Specified by:
setLineStyle in interface SWFShape
Parameters:
styleIndex - The new lineStyle value

defineFillStyle

public void defineFillStyle(Color color)
Description of the Method

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

defineFillStyle

public void defineFillStyle(Matrix matrix,
                            int[] ratios,
                            Color[] colors,
                            boolean radial)
Description of the Method

Specified by:
defineFillStyle in interface SWFShape
Parameters:
matrix - Description of the Parameter
ratios - Description of the Parameter
colors - Description of the Parameter
radial - Description of the Parameter

defineFillStyle

public void defineFillStyle(int bitmapId,
                            Matrix matrix,
                            boolean clipped)
Description of the Method

Specified by:
defineFillStyle in interface SWFShape
Parameters:
bitmapId - Description of the Parameter
matrix - Description of the Parameter
clipped - Description of the Parameter

defineLineStyle

public void defineLineStyle(int width,
                            Color color)
Description of the Method

Specified by:
defineLineStyle in interface SWFShape
Parameters:
width - Description of the Parameter
color - Description of the Parameter