java.lang.Object
com.anotherbigidea.flash.writers.TagWriter.SWFShapeImpl
- All Implemented Interfaces:
- com.anotherbigidea.flash.interfaces.SWFShape, com.anotherbigidea.flash.interfaces.SWFVectors
- Direct Known Subclasses:
- TagWriter.Font2ShapeImpl, TagWriter.MorphShapeImpl
- Enclosing class:
- TagWriter
- protected static class TagWriter.SWFShapeImpl
- extends java.lang.Object
- implements com.anotherbigidea.flash.interfaces.SWFShape
Implementation of the SWFShape interface
|
Method Summary |
void |
curve(int cx,
int cy,
int dx,
int dy)
|
void |
defineFillStyle(com.anotherbigidea.flash.structs.Color color)
Solid color fill |
void |
defineFillStyle(int bitmapId,
com.anotherbigidea.flash.structs.Matrix matrix,
boolean clipped)
Bitmap fill - tiled or clipped |
void |
defineFillStyle(com.anotherbigidea.flash.structs.Matrix matrix,
int[] ratios,
com.anotherbigidea.flash.structs.Color[] colors,
boolean radial)
Gradient fill - linear or radial. |
void |
defineLineStyle(int width,
com.anotherbigidea.flash.structs.Color color)
|
void |
done()
|
protected void |
finishFont()
|
protected void |
flushChangeRecords()
|
void |
line(int deltaX,
int deltaY)
|
void |
move(int x,
int y)
|
void |
setFillStyle0(int styleIndex)
|
void |
setFillStyle1(int styleIndex)
|
void |
setLineStyle(int styleIndex)
|
protected void |
writeChangeRecord()
|
protected void |
writeInitialStyles()
|
protected void |
writeMoveXY(int moveX,
int moveY)
|
protected void |
writeStyles(java.util.Vector styles)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hasAlpha
protected boolean hasAlpha
hasStyle
protected boolean hasStyle
outstandingChanges
protected boolean outstandingChanges
initialStyles
protected boolean initialStyles
fill0Index
protected int fill0Index
fill1Index
protected int fill1Index
lineIndex
protected int lineIndex
moveXY
protected int[] moveXY
lineStyles
protected java.util.Vector lineStyles
fillStyles
protected java.util.Vector fillStyles
fillBits
protected int fillBits
lineBits
protected int lineBits
glyphCount
protected int glyphCount
glyphByteArrays
protected java.util.Vector glyphByteArrays
out
protected com.anotherbigidea.io.OutStream out
writer
protected TagWriter writer
bout
protected java.io.ByteArrayOutputStream bout
TagWriter.SWFShapeImpl
public TagWriter.SWFShapeImpl(TagWriter writer,
boolean hasAlpha,
boolean hasStyle)
- For shapes (other than glyphs)
TagWriter.SWFShapeImpl
public TagWriter.SWFShapeImpl(TagWriter writer,
int glyphCount)
- For glyphs
done
public void done()
throws java.io.IOException
- Specified by:
done in interface com.anotherbigidea.flash.interfaces.SWFVectors
finishFont
protected void finishFont()
throws java.io.IOException
setFillStyle0
public void setFillStyle0(int styleIndex)
throws java.io.IOException
- Specified by:
setFillStyle0 in interface com.anotherbigidea.flash.interfaces.SWFShape
setFillStyle1
public void setFillStyle1(int styleIndex)
throws java.io.IOException
- Specified by:
setFillStyle1 in interface com.anotherbigidea.flash.interfaces.SWFShape
setLineStyle
public void setLineStyle(int styleIndex)
throws java.io.IOException
- Specified by:
setLineStyle in interface com.anotherbigidea.flash.interfaces.SWFShape
defineFillStyle
public void defineFillStyle(com.anotherbigidea.flash.structs.Color color)
throws java.io.IOException
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFShape
- Solid color fill
- Specified by:
defineFillStyle in interface com.anotherbigidea.flash.interfaces.SWFShape
defineFillStyle
public void defineFillStyle(com.anotherbigidea.flash.structs.Matrix matrix,
int[] ratios,
com.anotherbigidea.flash.structs.Color[] colors,
boolean radial)
throws java.io.IOException
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFShape
- Gradient fill - linear or radial.
- Specified by:
defineFillStyle in interface com.anotherbigidea.flash.interfaces.SWFShape
defineFillStyle
public void defineFillStyle(int bitmapId,
com.anotherbigidea.flash.structs.Matrix matrix,
boolean clipped)
throws java.io.IOException
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFShape
- Bitmap fill - tiled or clipped
- Specified by:
defineFillStyle in interface com.anotherbigidea.flash.interfaces.SWFShape
defineLineStyle
public void defineLineStyle(int width,
com.anotherbigidea.flash.structs.Color color)
throws java.io.IOException
- Specified by:
defineLineStyle in interface com.anotherbigidea.flash.interfaces.SWFShape
line
public void line(int deltaX,
int deltaY)
throws java.io.IOException
- Specified by:
line in interface com.anotherbigidea.flash.interfaces.SWFVectors
curve
public void curve(int cx,
int cy,
int dx,
int dy)
throws java.io.IOException
- Specified by:
curve in interface com.anotherbigidea.flash.interfaces.SWFVectors
move
public void move(int x,
int y)
throws java.io.IOException
- Specified by:
move in interface com.anotherbigidea.flash.interfaces.SWFVectors
flushChangeRecords
protected void flushChangeRecords()
throws java.io.IOException
writeInitialStyles
protected void writeInitialStyles()
throws java.io.IOException
writeChangeRecord
protected void writeChangeRecord()
throws java.io.IOException
writeMoveXY
protected void writeMoveXY(int moveX,
int moveY)
throws java.io.IOException
writeStyles
protected void writeStyles(java.util.Vector styles)
throws java.io.IOException