|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.tumba.parser.swf.SWFTagDumper
public class SWFTagDumper
An implementation of the SWFTagTypes interface that produces a debug dump
Field Summary | |
---|---|
protected java.lang.String |
dashes
Description of the Field |
protected boolean |
decompileActions
Description of the Field |
protected boolean |
dumpHex
Description of the Field |
protected java.lang.String |
indent
Description of the Field |
protected java.io.PrintWriter |
writer
Description of the Field |
Constructor Summary | |
---|---|
SWFTagDumper(boolean dumpHex,
boolean decompileActions)
Dump to System.out |
|
SWFTagDumper(java.io.OutputStream out,
boolean dumpHex,
boolean decompileActions)
Dump to the given output stream |
|
SWFTagDumper(java.io.PrintWriter writer,
boolean dumpHex,
boolean decompileActions)
Constructor for the SWFTagDumper object |
Method Summary | |
---|---|
void |
color(Color color)
SWFText interface |
void |
curve(int cx,
int cy,
int dx,
int dy)
SWFVectors interface |
void |
defineFillStyle(Color color)
SWFShape interface |
void |
defineFillStyle(int bitmapId,
Matrix matrix,
boolean clipped)
SWFShape interface |
void |
defineFillStyle(Matrix matrix,
int[] ratios,
Color[] colors,
boolean radial)
SWFShape interface |
void |
defineLineStyle(int width,
Color color)
SWFShape interface |
void |
done()
SWFVectors interface SWFText interface |
void |
dumpBitsLossless(java.lang.String name,
int id,
int format,
int width,
int height,
Color[] colors,
byte[] imageData)
Description of the Method |
void |
flush()
Description of the Method |
void |
font(int fontId,
int textHeight)
SWFText interface |
void |
header(int version,
long length,
int twipsWidth,
int twipsHeight,
int frameRate,
int frameCount)
SWFHeader interface. |
void |
line(int dx,
int dy)
SWFVectors interface |
static void |
main(java.lang.String[] args)
args[0] = name of SWF file to dump to System.out args[1] = if exists then dump-hex is true (dumps binary as hex - otherwise skips) args[2] = if exists then decompiles action codes |
void |
move(int x,
int y)
SWFVectors interface |
protected void |
println(java.lang.String line)
Description of the Method |
void |
printSoundStreamHead(java.lang.String name,
int playbackFrequency,
boolean playback16bit,
boolean playbackStereo,
int streamFormat,
int streamFrequency,
boolean stream16bit,
boolean streamStereo,
int averageSampleCount)
Description of the Method |
void |
setFillStyle0(int styleIndex)
SWFShape interface |
void |
setFillStyle1(int styleIndex)
SWFShape interface |
void |
setLineStyle(int styleIndex)
SWFShape interface |
void |
setX(int x)
SWFText interface |
void |
setY(int y)
SWFText interface |
void |
tag(int tagType,
boolean longTag,
byte[] contents)
SWFTags interface |
void |
tagButtonCXForm(int buttonId,
ColorTransform transform)
SWFTagTypes interface |
void |
tagDefineBits(int id,
byte[] imageData)
SWFTagTypes interface |
void |
tagDefineBitsJPEG2(int id,
byte[] data)
SWFTagTypes interface |
void |
tagDefineBitsJPEG2(int id,
java.io.InputStream jpegImage)
SWFTagTypes interface |
void |
tagDefineBitsJPEG3(int id,
byte[] imageData,
byte[] alphaData)
SWFTagTypes interface |
void |
tagDefineBitsLossless(int id,
int format,
int width,
int height,
Color[] colors,
byte[] imageData)
SWFTagTypes interface |
void |
tagDefineBitsLossless2(int id,
int format,
int width,
int height,
Color[] colors,
byte[] imageData)
SWFTagTypes interface |
SWFActions |
tagDefineButton(int id,
java.util.List buttonRecords)
SWFTagTypes interface |
SWFActions |
tagDefineButton2(int id,
boolean trackAsMenu,
java.util.List buttonRecord2s)
SWFTagTypes interface |
void |
tagDefineButtonSound(int buttonId,
int rollOverSoundId,
SoundInfo rollOverSoundInfo,
int rollOutSoundId,
SoundInfo rollOutSoundInfo,
int pressSoundId,
SoundInfo pressSoundInfo,
int releaseSoundId,
SoundInfo releaseSoundInfo)
SWFTagTypes interface |
SWFVectors |
tagDefineFont(int id,
int numGlyphs)
SWFTagTypes interface |
SWFVectors |
tagDefineFont2(int id,
int flags,
java.lang.String name,
int numGlyphs,
int ascent,
int descent,
int leading,
int[] codes,
int[] advances,
Rect[] bounds,
int[] kernCodes1,
int[] kernCodes2,
int[] kernAdjustments)
SWFTagTypes interface |
void |
tagDefineFontInfo(int fontId,
java.lang.String fontName,
int flags,
int[] codes)
SWFTagTypes interface |
SWFShape |
tagDefineMorphShape(int id,
Rect startBounds,
Rect endBounds)
SWFTagTypes interface |
void |
tagDefineQuickTimeMovie(int id,
java.lang.String filename)
SWFTagTypes interface |
SWFShape |
tagDefineShape(int id,
Rect outline)
SWFTagTypes interface |
SWFShape |
tagDefineShape2(int id,
Rect outline)
SWFTagTypes interface |
SWFShape |
tagDefineShape3(int id,
Rect outline)
SWFTagTypes interface |
void |
tagDefineSound(int id,
int format,
int frequency,
boolean bits16,
boolean stereo,
int sampleCount,
byte[] soundData)
SWFTagTypes interface |
SWFTagTypes |
tagDefineSprite(int id)
SWFTagTypes interface |
SWFText |
tagDefineText(int id,
Rect bounds,
Matrix matrix)
SWFTagTypes interface |
SWFText |
tagDefineText2(int id,
Rect bounds,
Matrix matrix)
SWFTagTypes interface |
void |
tagDefineTextField(int fieldId,
java.lang.String fieldName,
java.lang.String initialText,
Rect boundary,
int flags,
AlphaColor textColor,
int alignment,
int fontId,
int fontSize,
int charLimit,
int leftMargin,
int rightMargin,
int indentation,
int lineSpacing)
SWFTagTypes interface |
SWFActions |
tagDoAction()
SWFTagTypes interface |
void |
tagEnableDebug(byte[] password)
SWFTagTypes interface |
void |
tagEnd()
SWFTagTypes interface |
void |
tagExport(java.lang.String[] names,
int[] ids)
SWFTagTypes interface |
void |
tagFrameLabel(java.lang.String label)
SWFTagTypes interface |
void |
tagFreeCharacter(int charId)
SWFTagTypes interface |
void |
tagGenerator(byte[] data)
SWFTagTypes interface |
void |
tagGeneratorCommand(byte[] data)
SWFTagTypes interface |
void |
tagGeneratorFont(byte[] data)
SWFTagTypes interface |
void |
tagGeneratorText(byte[] data)
SWFTagTypes interface |
void |
tagImport(java.lang.String movieName,
java.lang.String[] names,
int[] ids)
SWFTagTypes interface |
void |
tagJPEGTables(byte[] jpegEncodingData)
SWFTagTypes interface |
void |
tagNameCharacter(byte[] data)
SWFTagTypes interface |
void |
tagPlaceObject(int charId,
int depth,
Matrix matrix,
AlphaTransform cxform)
SWFTagTypes interface |
SWFActions |
tagPlaceObject2(boolean isMove,
int clipDepth,
int depth,
int charId,
Matrix matrix,
AlphaTransform cxform,
int ratio,
java.lang.String name,
int clipActionFlags)
SWFTagTypes interface |
void |
tagProtect(byte[] password)
SWFTagTypes interface |
void |
tagRemoveObject(int charId,
int depth)
SWFTagTypes interface |
void |
tagRemoveObject2(int depth)
SWFTagTypes interface |
void |
tagSerialNumber(java.lang.String serialNumber)
SWFTagTypes interface |
void |
tagSetBackgroundColor(Color color)
SWFTagTypes interface |
void |
tagShowFrame()
SWFTagTypes interface |
void |
tagSoundStreamBlock(byte[] soundData)
SWFTagTypes interface |
void |
tagSoundStreamHead(int playbackFrequency,
boolean playback16bit,
boolean playbackStereo,
int streamFormat,
int streamFrequency,
boolean stream16bit,
boolean streamStereo,
int averageSampleCount)
SWFTagTypes interface |
void |
tagSoundStreamHead2(int playbackFrequency,
boolean playback16bit,
boolean playbackStereo,
int streamFormat,
int streamFrequency,
boolean stream16bit,
boolean streamStereo,
int averageSampleCount)
SWFTagTypes interface |
void |
tagStartSound(int soundId,
SoundInfo info)
SWFTagTypes interface |
void |
text(int[] glyphIndices,
int[] glyphAdvances)
SWFText interface |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.PrintWriter writer
protected java.lang.String dashes
protected boolean dumpHex
protected java.lang.String indent
protected boolean decompileActions
Constructor Detail |
---|
public SWFTagDumper(boolean dumpHex, boolean decompileActions)
dumpHex
- if true then binary data will dumped as hex -
otherwise skippeddecompileActions
- Description of the Parameterpublic SWFTagDumper(java.io.OutputStream out, boolean dumpHex, boolean decompileActions)
dumpHex
- if true then binary data will dumped as hex -
otherwise skippedout
- Description of the ParameterdecompileActions
- Description of the Parameterpublic SWFTagDumper(java.io.PrintWriter writer, boolean dumpHex, boolean decompileActions)
writer
- Description of the ParameterdumpHex
- Description of the ParameterdecompileActions
- Description of the ParameterMethod Detail |
---|
protected void println(java.lang.String line)
line
- Description of the Parameterpublic void tag(int tagType, boolean longTag, byte[] contents) throws java.io.IOException
tag
in interface SWFTags
tagType
- Description of the ParameterlongTag
- Description of the Parametercontents
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void header(int version, long length, int twipsWidth, int twipsHeight, int frameRate, int frameCount) throws java.io.IOException
header
in interface SWFHeader
version
- Description of the Parameterlength
- Description of the ParametertwipsWidth
- Description of the ParametertwipsHeight
- Description of the ParameterframeRate
- Description of the ParameterframeCount
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagEnd() throws java.io.IOException
tagEnd
in interface SWFSpriteTagTypes
java.io.IOException
- Description of the Exceptionpublic void tagStartSound(int soundId, SoundInfo info) throws java.io.IOException
tagStartSound
in interface SWFSpriteTagTypes
soundId
- Description of the Parameterinfo
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagSoundStreamHead(int playbackFrequency, boolean playback16bit, boolean playbackStereo, int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo, int averageSampleCount) throws java.io.IOException
tagSoundStreamHead
in interface SWFSpriteTagTypes
playbackFrequency
- Description of the Parameterplayback16bit
- Description of the ParameterplaybackStereo
- Description of the ParameterstreamFormat
- Description of the ParameterstreamFrequency
- Description of the Parameterstream16bit
- Description of the ParameterstreamStereo
- Description of the ParameteraverageSampleCount
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagSoundStreamHead2(int playbackFrequency, boolean playback16bit, boolean playbackStereo, int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo, int averageSampleCount) throws java.io.IOException
tagSoundStreamHead2
in interface SWFSpriteTagTypes
playbackFrequency
- Description of the Parameterplayback16bit
- Description of the ParameterplaybackStereo
- Description of the ParameterstreamFormat
- Description of the ParameterstreamFrequency
- Description of the Parameterstream16bit
- Description of the ParameterstreamStereo
- Description of the ParameteraverageSampleCount
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void printSoundStreamHead(java.lang.String name, int playbackFrequency, boolean playback16bit, boolean playbackStereo, int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo, int averageSampleCount) throws java.io.IOException
name
- Description of the ParameterplaybackFrequency
- Description of the Parameterplayback16bit
- Description of the ParameterplaybackStereo
- Description of the ParameterstreamFormat
- Description of the ParameterstreamFrequency
- Description of the Parameterstream16bit
- Description of the ParameterstreamStereo
- Description of the ParameteraverageSampleCount
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagSoundStreamBlock(byte[] soundData) throws java.io.IOException
tagSoundStreamBlock
in interface SWFSpriteTagTypes
soundData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagSerialNumber(java.lang.String serialNumber) throws java.io.IOException
tagSerialNumber
in interface SWFTagTypes
serialNumber
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagGenerator(byte[] data) throws java.io.IOException
tagGenerator
in interface SWFTagTypes
data
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagGeneratorText(byte[] data) throws java.io.IOException
tagGeneratorText
in interface SWFTagTypes
data
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagGeneratorFont(byte[] data) throws java.io.IOException
tagGeneratorFont
in interface SWFTagTypes
data
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagGeneratorCommand(byte[] data) throws java.io.IOException
tagGeneratorCommand
in interface SWFTagTypes
data
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagNameCharacter(byte[] data) throws java.io.IOException
tagNameCharacter
in interface SWFTagTypes
data
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineBits(int id, byte[] imageData) throws java.io.IOException
tagDefineBits
in interface SWFTagTypes
id
- Description of the ParameterimageData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagJPEGTables(byte[] jpegEncodingData) throws java.io.IOException
tagJPEGTables
in interface SWFTagTypes
jpegEncodingData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineBitsJPEG3(int id, byte[] imageData, byte[] alphaData) throws java.io.IOException
tagDefineBitsJPEG3
in interface SWFTagTypes
id
- Description of the ParameterimageData
- Description of the ParameteralphaData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineSound(int id, int format, int frequency, boolean bits16, boolean stereo, int sampleCount, byte[] soundData) throws java.io.IOException
tagDefineSound
in interface SWFTagTypes
id
- Description of the Parameterformat
- Description of the Parameterfrequency
- Description of the Parameterbits16
- Description of the Parameterstereo
- Description of the ParametersampleCount
- Description of the ParametersoundData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineButtonSound(int buttonId, int rollOverSoundId, SoundInfo rollOverSoundInfo, int rollOutSoundId, SoundInfo rollOutSoundInfo, int pressSoundId, SoundInfo pressSoundInfo, int releaseSoundId, SoundInfo releaseSoundInfo) throws java.io.IOException
tagDefineButtonSound
in interface SWFTagTypes
buttonId
- Description of the ParameterrollOverSoundId
- Description of the ParameterrollOverSoundInfo
- Description of the ParameterrollOutSoundId
- Description of the ParameterrollOutSoundInfo
- Description of the ParameterpressSoundId
- Description of the ParameterpressSoundInfo
- Description of the ParameterreleaseSoundId
- Description of the ParameterreleaseSoundInfo
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagShowFrame() throws java.io.IOException
tagShowFrame
in interface SWFSpriteTagTypes
java.io.IOException
- Description of the Exceptionpublic SWFActions tagDoAction() throws java.io.IOException
tagDoAction
in interface SWFSpriteTagTypes
java.io.IOException
- Description of the Exceptionpublic SWFShape tagDefineShape(int id, Rect outline) throws java.io.IOException
tagDefineShape
in interface SWFTagTypes
id
- Description of the Parameteroutline
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFShape tagDefineShape2(int id, Rect outline) throws java.io.IOException
tagDefineShape2
in interface SWFTagTypes
id
- Description of the Parameteroutline
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFShape tagDefineShape3(int id, Rect outline) throws java.io.IOException
tagDefineShape3
in interface SWFTagTypes
id
- Description of the Parameteroutline
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagFreeCharacter(int charId) throws java.io.IOException
tagFreeCharacter
in interface SWFSpriteTagTypes
charId
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagPlaceObject(int charId, int depth, Matrix matrix, AlphaTransform cxform) throws java.io.IOException
tagPlaceObject
in interface SWFSpriteTagTypes
charId
- Description of the Parameterdepth
- Description of the Parametermatrix
- Description of the Parametercxform
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFActions tagPlaceObject2(boolean isMove, int clipDepth, int depth, int charId, Matrix matrix, AlphaTransform cxform, int ratio, java.lang.String name, int clipActionFlags) throws java.io.IOException
tagPlaceObject2
in interface SWFSpriteTagTypes
isMove
- Description of the ParameterclipDepth
- Description of the Parameterdepth
- Description of the ParametercharId
- Description of the Parametermatrix
- Description of the Parametercxform
- Description of the Parameterratio
- Description of the Parametername
- Description of the ParameterclipActionFlags
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagRemoveObject(int charId, int depth) throws java.io.IOException
tagRemoveObject
in interface SWFSpriteTagTypes
charId
- Description of the Parameterdepth
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagRemoveObject2(int depth) throws java.io.IOException
tagRemoveObject2
in interface SWFSpriteTagTypes
depth
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagSetBackgroundColor(Color color) throws java.io.IOException
tagSetBackgroundColor
in interface SWFTagTypes
color
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagFrameLabel(java.lang.String label) throws java.io.IOException
tagFrameLabel
in interface SWFSpriteTagTypes
label
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFTagTypes tagDefineSprite(int id) throws java.io.IOException
tagDefineSprite
in interface SWFTagTypes
id
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagProtect(byte[] password) throws java.io.IOException
tagProtect
in interface SWFTagTypes
password
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagEnableDebug(byte[] password) throws java.io.IOException
tagEnableDebug
in interface SWFTagTypes
password
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFVectors tagDefineFont(int id, int numGlyphs) throws java.io.IOException
tagDefineFont
in interface SWFTagTypes
id
- Description of the ParameternumGlyphs
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineFontInfo(int fontId, java.lang.String fontName, int flags, int[] codes) throws java.io.IOException
tagDefineFontInfo
in interface SWFTagTypes
fontId
- Description of the ParameterfontName
- Description of the Parameterflags
- Description of the Parametercodes
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFVectors tagDefineFont2(int id, int flags, java.lang.String name, int numGlyphs, int ascent, int descent, int leading, int[] codes, int[] advances, Rect[] bounds, int[] kernCodes1, int[] kernCodes2, int[] kernAdjustments) throws java.io.IOException
tagDefineFont2
in interface SWFTagTypes
id
- Description of the Parameterflags
- Description of the Parametername
- Description of the ParameternumGlyphs
- Description of the Parameterascent
- Description of the Parameterdescent
- Description of the Parameterleading
- Description of the Parametercodes
- Description of the Parameteradvances
- Description of the Parameterbounds
- Description of the ParameterkernCodes1
- Description of the ParameterkernCodes2
- Description of the ParameterkernAdjustments
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineTextField(int fieldId, java.lang.String fieldName, java.lang.String initialText, Rect boundary, int flags, AlphaColor textColor, int alignment, int fontId, int fontSize, int charLimit, int leftMargin, int rightMargin, int indentation, int lineSpacing) throws java.io.IOException
tagDefineTextField
in interface SWFTagTypes
fieldId
- Description of the ParameterfieldName
- Description of the ParameterinitialText
- Description of the Parameterboundary
- Description of the Parameterflags
- Description of the ParametertextColor
- Description of the Parameteralignment
- Description of the ParameterfontId
- Description of the ParameterfontSize
- Description of the ParametercharLimit
- Description of the ParameterleftMargin
- Description of the ParameterrightMargin
- Description of the Parameterindentation
- Description of the ParameterlineSpacing
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFText tagDefineText(int id, Rect bounds, Matrix matrix) throws java.io.IOException
tagDefineText
in interface SWFTagTypes
id
- Description of the Parameterbounds
- Description of the Parametermatrix
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFText tagDefineText2(int id, Rect bounds, Matrix matrix) throws java.io.IOException
tagDefineText2
in interface SWFTagTypes
id
- Description of the Parameterbounds
- Description of the Parametermatrix
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFActions tagDefineButton(int id, java.util.List buttonRecords) throws java.io.IOException
tagDefineButton
in interface SWFTagTypes
id
- Description of the ParameterbuttonRecords
- Description of the Parameter
java.io.IOException
- Description of the Exceptioncom.anotherbigidea.flash.structs.ButtonRecord
public void tagButtonCXForm(int buttonId, ColorTransform transform) throws java.io.IOException
tagButtonCXForm
in interface SWFTagTypes
buttonId
- Description of the Parametertransform
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFActions tagDefineButton2(int id, boolean trackAsMenu, java.util.List buttonRecord2s) throws java.io.IOException
tagDefineButton2
in interface SWFTagTypes
id
- Description of the ParametertrackAsMenu
- Description of the ParameterbuttonRecord2s
- Description of the Parameter
java.io.IOException
- Description of the Exceptioncom.anotherbigidea.flash.structs.ButtonRecord2
public void tagExport(java.lang.String[] names, int[] ids) throws java.io.IOException
tagExport
in interface SWFTagTypes
names
- Description of the Parameterids
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagImport(java.lang.String movieName, java.lang.String[] names, int[] ids) throws java.io.IOException
tagImport
in interface SWFTagTypes
movieName
- Description of the Parameternames
- Description of the Parameterids
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineQuickTimeMovie(int id, java.lang.String filename) throws java.io.IOException
tagDefineQuickTimeMovie
in interface SWFTagTypes
id
- Description of the Parameterfilename
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineBitsJPEG2(int id, byte[] data) throws java.io.IOException
tagDefineBitsJPEG2
in interface SWFTagTypes
id
- Description of the Parameterdata
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineBitsJPEG2(int id, java.io.InputStream jpegImage) throws java.io.IOException
tagDefineBitsJPEG2
in interface SWFTagTypes
id
- Description of the ParameterjpegImage
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic SWFShape tagDefineMorphShape(int id, Rect startBounds, Rect endBounds) throws java.io.IOException
tagDefineMorphShape
in interface SWFTagTypes
id
- Description of the ParameterstartBounds
- Description of the ParameterendBounds
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineBitsLossless(int id, int format, int width, int height, Color[] colors, byte[] imageData) throws java.io.IOException
tagDefineBitsLossless
in interface SWFTagTypes
id
- Description of the Parameterformat
- Description of the Parameterwidth
- Description of the Parameterheight
- Description of the Parametercolors
- Description of the ParameterimageData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void tagDefineBitsLossless2(int id, int format, int width, int height, Color[] colors, byte[] imageData) throws java.io.IOException
tagDefineBitsLossless2
in interface SWFTagTypes
id
- Description of the Parameterformat
- Description of the Parameterwidth
- Description of the Parameterheight
- Description of the Parametercolors
- Description of the ParameterimageData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void dumpBitsLossless(java.lang.String name, int id, int format, int width, int height, Color[] colors, byte[] imageData) throws java.io.IOException
name
- Description of the Parameterid
- Description of the Parameterformat
- Description of the Parameterwidth
- Description of the Parameterheight
- Description of the Parametercolors
- Description of the ParameterimageData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void done() throws java.io.IOException
done
in interface SWFText
done
in interface SWFVectors
java.io.IOException
- Description of the Exceptionpublic void line(int dx, int dy) throws java.io.IOException
line
in interface SWFVectors
dx
- Description of the Parameterdy
- 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 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 font(int fontId, int textHeight) throws java.io.IOException
font
in interface SWFText
fontId
- Description of the ParametertextHeight
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void color(Color color) throws java.io.IOException
color
in interface SWFText
color
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void setX(int x) throws java.io.IOException
setX
in interface SWFText
x
- The new x value
java.io.IOException
- Description of the Exceptionpublic void setY(int y) throws java.io.IOException
setY
in interface SWFText
y
- The new y value
java.io.IOException
- Description of the Exceptionpublic void text(int[] glyphIndices, int[] glyphAdvances) throws java.io.IOException
text
in interface SWFText
glyphIndices
- Description of the ParameterglyphAdvances
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void flush() throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic static void main(java.lang.String[] args) throws java.io.IOException
args
- The command line arguments
java.io.IOException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |