|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpt.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 Parameter
public TagWriter.SWFShapeImpl(TagWriter writer,
int glyphCount)
writer - Description of the ParameterglyphCount - Description of the Parameter| Method Detail |
|---|
public void done()
throws java.io.IOException
done in interface SWFVectorsjava.io.IOException - Description of the Exception
protected void finishFont()
throws java.io.IOException
java.io.IOException - Description of the Exception
public void setFillStyle0(int styleIndex)
throws java.io.IOException
setFillStyle0 in interface SWFShapestyleIndex - The new fillStyle0 value
java.io.IOException - Description of the Exception
public void setFillStyle1(int styleIndex)
throws java.io.IOException
setFillStyle1 in interface SWFShapestyleIndex - The new fillStyle1 value
java.io.IOException - Description of the Exception
public void setLineStyle(int styleIndex)
throws java.io.IOException
setLineStyle in interface SWFShapestyleIndex - The new lineStyle value
java.io.IOException - Description of the Exception
public void defineFillStyle(Color color)
throws java.io.IOException
defineFillStyle in interface SWFShapecolor - Description of the Parameter
java.io.IOException - Description of the Exception
public void defineFillStyle(Matrix matrix,
int[] ratios,
Color[] colors,
boolean radial)
throws java.io.IOException
defineFillStyle in interface SWFShapematrix - Description of the Parameterratios - Description of the Parametercolors - Description of the Parameterradial - Description of the Parameter
java.io.IOException - Description of the Exception
public void defineFillStyle(int bitmapId,
Matrix matrix,
boolean clipped)
throws java.io.IOException
defineFillStyle in interface SWFShapebitmapId - Description of the Parametermatrix - Description of the Parameterclipped - Description of the Parameter
java.io.IOException - Description of the Exception
public void defineLineStyle(int width,
Color color)
throws java.io.IOException
defineLineStyle in interface SWFShapewidth - Description of the Parametercolor - Description of the Parameter
java.io.IOException - Description of the Exception
public void line(int deltaX,
int deltaY)
throws java.io.IOException
line in interface SWFVectorsdeltaX - Description of the ParameterdeltaY - Description of the Parameter
java.io.IOException - Description of the Exception
public void curve(int cx,
int cy,
int dx,
int dy)
throws java.io.IOException
curve in interface SWFVectorscx - Description of the Parametercy - Description of the Parameterdx - Description of the Parameterdy - Description of the Parameter
java.io.IOException - Description of the Exception
public void move(int x,
int y)
throws java.io.IOException
move in interface SWFVectorsx - Description of the Parametery - Description of the Parameter
java.io.IOException - Description of the Exception
protected void flushChangeRecords()
throws java.io.IOException
java.io.IOException - Description of the Exception
protected void writeInitialStyles()
throws java.io.IOException
java.io.IOException - Description of the Exception
protected void writeChangeRecord()
throws java.io.IOException
java.io.IOException - Description of the Exception
protected 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 Exception
protected 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 | |||||||||