java.lang.Object
com.anotherbigidea.flash.structs.FillStyle
- All Implemented Interfaces:
- Style
- public class FillStyle
- extends java.lang.Object
- implements Style
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fillType
protected int fillType
color
protected Color color
matrix
protected Matrix matrix
ratios
protected int[] ratios
colors
protected Color[] colors
bitmapId
protected int bitmapId
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
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