Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.anotherbigidea.flash.structs
Class FillStyle  view FillStyle download FillStyle.java

java.lang.Object
  extended bycom.anotherbigidea.flash.structs.FillStyle
All Implemented Interfaces:
Style

public class FillStyle
extends java.lang.Object
implements Style


Field Summary
protected  int bitmapId
           
protected  Color color
           
protected  Color[] colors
           
protected  int fillType
           
protected  Matrix matrix
           
protected  int[] ratios
           
 
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()
           
 int[] getGradientRatios()
           
 int getImageId()
           
 Matrix getMatrix()
           
 Color getSolidColor()
           
 int getType()
           
 void write(com.anotherbigidea.io.OutStream out, boolean hasAlpha)
           
static void writeMorphFillStyle(com.anotherbigidea.io.OutStream out, FillStyle startStyle, FillStyle endStyle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fillType

protected int fillType

color

protected Color color

matrix

protected Matrix matrix

ratios

protected int[] ratios

colors

protected Color[] colors

bitmapId

protected int bitmapId
Constructor Detail

FillStyle

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


FillStyle

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


FillStyle

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

Method Detail

getType

public int getType()

getSolidColor

public Color getSolidColor()

getMatrix

public Matrix getMatrix()

getImageId

public int getImageId()

getGradientRatios

public int[] getGradientRatios()

getGradientColors

public Color[] getGradientColors()

write

public void write(com.anotherbigidea.io.OutStream out,
                  boolean hasAlpha)
           throws java.io.IOException
Specified by:
write in interface Style

writeMorphFillStyle

public static void writeMorphFillStyle(com.anotherbigidea.io.OutStream out,
                                       FillStyle startStyle,
                                       FillStyle endStyle)
                                throws java.io.IOException