pt.tumba.parser.swf
Class FillStyle

java.lang.Object
  extended by pt.tumba.parser.swf.FillStyle
All Implemented Interfaces:
Style

public class FillStyle
extends java.lang.Object
implements Style

Description of the Class

Author:
unknown

Field Summary
protected  int bitmapId
          Description of the Field
protected  Color color
          Description of the Field
protected  Color[] colors
          Description of the Field
protected  int fillType
          Description of the Field
protected  Matrix matrix
          Description of the Field
protected  int[] ratios
          Description of the Field
 
Constructor Summary
FillStyle(Color solidColor)
          Solid color fill (alpha depends on the TagDefineShapeX tag used)
FillStyle(int bitmapId, Matrix matrix, boolean clipped)
          Bitmap fill
FillStyle(Matrix matrix, int[] ratios, Color[] colors, boolean radial)
          Linear/Radial Gradient Fill
 
Method Summary
 Color[] getGradientColors()
          Gets the gradientColors attribute of the FillStyle object
 int[] getGradientRatios()
          Gets the gradientRatios attribute of the FillStyle object
 int getImageId()
          Gets the imageId attribute of the FillStyle object
 Matrix getMatrix()
          Gets the matrix attribute of the FillStyle object
 Color getSolidColor()
          Gets the solidColor attribute of the FillStyle object
 int getType()
          Gets the type attribute of the FillStyle object
 void write(OutStream out, boolean hasAlpha)
          Description of the Method
static void writeMorphFillStyle(OutStream out, FillStyle startStyle, FillStyle endStyle)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fillType

protected int fillType
Description of the Field


color

protected Color color
Description of the Field


matrix

protected Matrix matrix
Description of the Field


ratios

protected int[] ratios
Description of the Field


colors

protected Color[] colors
Description of the Field


bitmapId

protected int bitmapId
Description of the Field

Constructor Detail

FillStyle

public FillStyle(Color solidColor)
Solid color fill (alpha depends on the TagDefineShapeX tag used)

Parameters:
solidColor - Description of the Parameter

FillStyle

public FillStyle(Matrix matrix,
                 int[] ratios,
                 Color[] colors,
                 boolean radial)
Linear/Radial Gradient Fill

Parameters:
matrix - Description of the Parameter
ratios - Description of the Parameter
colors - Description of the Parameter
radial - Description of the Parameter

FillStyle

public FillStyle(int bitmapId,
                 Matrix matrix,
                 boolean clipped)
Bitmap fill

Parameters:
bitmapId - Description of the Parameter
matrix - Description of the Parameter
clipped - Description of the Parameter
Method Detail

getType

public int getType()
Gets the type attribute of the FillStyle object

Returns:
The type value

getSolidColor

public Color getSolidColor()
Gets the solidColor attribute of the FillStyle object

Returns:
The solidColor value

getMatrix

public Matrix getMatrix()
Gets the matrix attribute of the FillStyle object

Returns:
The matrix value

getImageId

public int getImageId()
Gets the imageId attribute of the FillStyle object

Returns:
The imageId value

getGradientRatios

public int[] getGradientRatios()
Gets the gradientRatios attribute of the FillStyle object

Returns:
The gradientRatios value

getGradientColors

public Color[] getGradientColors()
Gets the gradientColors attribute of the FillStyle object

Returns:
The gradientColors value

write

public void write(OutStream out,
                  boolean hasAlpha)
           throws java.io.IOException
Description of the Method

Specified by:
write in interface Style
Parameters:
out - Description of the Parameter
hasAlpha - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

writeMorphFillStyle

public static void writeMorphFillStyle(OutStream out,
                                       FillStyle startStyle,
                                       FillStyle endStyle)
                                throws java.io.IOException
Description of the Method

Parameters:
out - Description of the Parameter
startStyle - Description of the Parameter
endStyle - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception