|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.tumba.parser.swf.TagWriter.SWFShapeImpl
protected static class TagWriter.SWFShapeImpl
Implementation of the SWFShape interface
Field Summary | |
---|---|
protected java.io.ByteArrayOutputStream |
bout
Description of the Field |
protected int |
fill0Index
Description of the Field |
protected int |
fill1Index
Description of the Field |
protected int |
fillBits
Description of the Field |
protected java.util.List |
fillStyles
Description of the Field |
protected java.util.List |
glyphByteArrays
Description of the Field |
protected int |
glyphCount
Description of the Field |
protected boolean |
hasAlpha
Description of the Field |
protected boolean |
hasStyle
Description of the Field |
protected boolean |
initialStyles
Description of the Field |
protected int |
lineBits
Description of the Field |
protected int |
lineIndex
Description of the Field |
protected java.util.List |
lineStyles
Description of the Field |
protected int[] |
moveXY
Description of the Field |
protected OutStream |
out
Description of the Field |
protected boolean |
outstandingChanges
Description of the Field |
protected TagWriter |
writer
Description of the Field |
Constructor Summary | |
---|---|
TagWriter.SWFShapeImpl(TagWriter writer,
boolean hasAlpha,
boolean hasStyle)
For shapes (other than glyphs) |
|
TagWriter.SWFShapeImpl(TagWriter writer,
int glyphCount)
For glyphs |
Method Summary | |
---|---|
void |
curve(int cx,
int cy,
int dx,
int dy)
Description of the Method |
void |
defineFillStyle(Color color)
Description of the Method |
void |
defineFillStyle(int bitmapId,
Matrix matrix,
boolean clipped)
Description of the Method |
void |
defineFillStyle(Matrix matrix,
int[] ratios,
Color[] colors,
boolean radial)
Description of the Method |
void |
defineLineStyle(int width,
Color color)
Description of the Method |
void |
done()
Description of the Method |
protected void |
finishFont()
Description of the Method |
protected void |
flushChangeRecords()
Description of the Method |
void |
line(int deltaX,
int deltaY)
Description of the Method |
void |
move(int x,
int y)
Description of the Method |
void |
setFillStyle0(int styleIndex)
Sets the fillStyle0 attribute of the SWFShapeImpl object |
void |
setFillStyle1(int styleIndex)
Sets the fillStyle1 attribute of the SWFShapeImpl object |
void |
setLineStyle(int styleIndex)
Sets the lineStyle attribute of the SWFShapeImpl object |
protected void |
writeChangeRecord()
Description of the Method |
protected void |
writeInitialStyles()
Description of the Method |
protected void |
writeMoveXY(int moveX,
int moveY)
Description of the Method |
protected void |
writeStyles(java.util.List styles)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean hasAlpha
protected boolean hasStyle
protected boolean outstandingChanges
protected boolean initialStyles
protected int fill0Index
protected int fill1Index
protected int lineIndex
protected int[] moveXY
protected java.util.List lineStyles
protected java.util.List fillStyles
protected int fillBits
protected int lineBits
protected int glyphCount
protected java.util.List glyphByteArrays
protected OutStream out
protected TagWriter writer
protected java.io.ByteArrayOutputStream bout
Constructor Detail |
---|
public TagWriter.SWFShapeImpl(TagWriter writer, boolean hasAlpha, boolean hasStyle)
writer
- Description of the ParameterhasAlpha
- Description of the ParameterhasStyle
- Description of the Parameterpublic TagWriter.SWFShapeImpl(TagWriter writer, int glyphCount)
writer
- Description of the ParameterglyphCount
- Description of the ParameterMethod Detail |
---|
public void done() throws java.io.IOException
done
in interface SWFVectors
java.io.IOException
- Description of the Exceptionprotected void finishFont() throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic void setFillStyle0(int styleIndex) throws java.io.IOException
setFillStyle0
in interface SWFShape
styleIndex
- The new fillStyle0 value
java.io.IOException
- Description of the Exceptionpublic void setFillStyle1(int styleIndex) throws java.io.IOException
setFillStyle1
in interface SWFShape
styleIndex
- The new fillStyle1 value
java.io.IOException
- Description of the Exceptionpublic void setLineStyle(int styleIndex) throws java.io.IOException
setLineStyle
in interface SWFShape
styleIndex
- The new lineStyle value
java.io.IOException
- Description of the Exceptionpublic void defineFillStyle(Color color) throws java.io.IOException
defineFillStyle
in interface SWFShape
color
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void defineFillStyle(Matrix matrix, int[] ratios, Color[] colors, boolean radial) throws java.io.IOException
defineFillStyle
in interface SWFShape
matrix
- Description of the Parameterratios
- Description of the Parametercolors
- Description of the Parameterradial
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void defineFillStyle(int bitmapId, Matrix matrix, boolean clipped) throws java.io.IOException
defineFillStyle
in interface SWFShape
bitmapId
- Description of the Parametermatrix
- Description of the Parameterclipped
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void defineLineStyle(int width, Color color) throws java.io.IOException
defineLineStyle
in interface SWFShape
width
- Description of the Parametercolor
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void line(int deltaX, int deltaY) throws java.io.IOException
line
in interface SWFVectors
deltaX
- Description of the ParameterdeltaY
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void curve(int cx, int cy, int dx, int dy) throws java.io.IOException
curve
in interface SWFVectors
cx
- Description of the Parametercy
- Description of the Parameterdx
- Description of the Parameterdy
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void move(int x, int y) throws java.io.IOException
move
in interface SWFVectors
x
- Description of the Parametery
- Description of the Parameter
java.io.IOException
- Description of the Exceptionprotected void flushChangeRecords() throws java.io.IOException
java.io.IOException
- Description of the Exceptionprotected void writeInitialStyles() throws java.io.IOException
java.io.IOException
- Description of the Exceptionprotected void writeChangeRecord() throws java.io.IOException
java.io.IOException
- Description of the Exceptionprotected void writeMoveXY(int moveX, int moveY) throws java.io.IOException
moveX
- Description of the ParametermoveY
- Description of the Parameter
java.io.IOException
- Description of the Exceptionprotected void writeStyles(java.util.List styles) throws java.io.IOException
styles
- Description of the Parameter
java.io.IOException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |