pt.tumba.parser.swf
Interface SWFShape

All Superinterfaces:
SWFVectors
All Known Implementing Classes:
MovieBuilder.GlyphBuilder, MovieBuilder.MorphShapeBuilder, MovieBuilder.ShapeBuilder, SWFSaxParser, SWFTagDumper, TagWriter.Font2ShapeImpl, TagWriter.MorphShapeImpl, TagWriter.SWFShapeImpl

public interface SWFShape
extends SWFVectors

Interface for passing shape style information in addition to the basic vectors.

Author:
unknown

Method Summary
 void defineFillStyle(Color color)
          Solid color fill
 void defineFillStyle(int bitmapId, Matrix matrix, boolean clipped)
          Bitmap fill - tiled or clipped
 void defineFillStyle(Matrix matrix, int[] ratios, Color[] colors, boolean radial)
          Gradient fill - linear or radial.
 void defineLineStyle(int width, Color color)
          Description of the Method
 void setFillStyle0(int styleIndex)
          Sets the fillStyle0 attribute of the SWFShape object
 void setFillStyle1(int styleIndex)
          Sets the fillStyle1 attribute of the SWFShape object
 void setLineStyle(int styleIndex)
          Sets the lineStyle attribute of the SWFShape object
 
Methods inherited from interface pt.tumba.parser.swf.SWFVectors
curve, done, line, move
 

Method Detail

setFillStyle0

void setFillStyle0(int styleIndex)
                   throws java.io.IOException
Sets the fillStyle0 attribute of the SWFShape object

Parameters:
styleIndex - The new fillStyle0 value
Throws:
java.io.IOException - Description of the Exception

setFillStyle1

void setFillStyle1(int styleIndex)
                   throws java.io.IOException
Sets the fillStyle1 attribute of the SWFShape object

Parameters:
styleIndex - The new fillStyle1 value
Throws:
java.io.IOException - Description of the Exception

setLineStyle

void setLineStyle(int styleIndex)
                  throws java.io.IOException
Sets the lineStyle attribute of the SWFShape object

Parameters:
styleIndex - The new lineStyle value
Throws:
java.io.IOException - Description of the Exception

defineFillStyle

void defineFillStyle(Color color)
                     throws java.io.IOException
Solid color fill

Parameters:
color - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

defineFillStyle

void defineFillStyle(Matrix matrix,
                     int[] ratios,
                     Color[] colors,
                     boolean radial)
                     throws java.io.IOException
Gradient fill - linear or radial.

Parameters:
colors - may have null elements - these (and the corresponding ratio) should be ignored
matrix - Description of the Parameter
ratios - Description of the Parameter
radial - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

defineFillStyle

void defineFillStyle(int bitmapId,
                     Matrix matrix,
                     boolean clipped)
                     throws java.io.IOException
Bitmap fill - tiled or clipped

Parameters:
bitmapId - Description of the Parameter
matrix - Description of the Parameter
clipped - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

defineLineStyle

void defineLineStyle(int width,
                     Color color)
                     throws java.io.IOException
Description of the Method

Parameters:
width - Description of the Parameter
color - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception