|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpt.tumba.parser.swf.MovieBuilder
public class MovieBuilder
An implementation of the SWFTagTypes interface that builds a Movie object
| Nested Class Summary | |
|---|---|
protected static class |
MovieBuilder.ActionsBuilder
A SWFActions implementation that breaks multiple action arrays into separate Actions objects |
protected class |
MovieBuilder.ButtonActionBuilder
Description of the Class |
protected class |
MovieBuilder.ClipActionBuilder
Description of the Class |
protected class |
MovieBuilder.GlyphBuilder
Description of the Class |
protected class |
MovieBuilder.MorphShapeBuilder
Description of the Class |
protected class |
MovieBuilder.ShapeBuilder
SWFShape implementation that builds a Shape |
protected class |
MovieBuilder.TextBuilder
A SWFText implementation that builds a Text object |
| Field Summary | |
|---|---|
protected MovieClip |
clip
Description of the Field |
protected Frame |
frame
Description of the Field |
protected java.util.Map |
instances
Description of the Field |
protected Movie |
movie
Description of the Field |
protected boolean |
newMovie
Description of the Field |
protected java.util.Map |
symbols
Description of the Field |
protected TimeLine |
timeline
Description of the Field |
| Constructor Summary | |
|---|---|
|
MovieBuilder()
Build a new Movie |
|
MovieBuilder(Movie movie)
Append to an existing movie (do not change size,rate,color,version etc) |
protected |
MovieBuilder(MovieBuilder parent,
MovieClip clip)
Build the timeline of a MovieClip |
| Method Summary | |
|---|---|
protected Frame |
currentFrame()
Description of the Method |
java.util.Map |
getDefinedSymbols()
Get the defined symbols - keyed by Integer( symbolId ) |
protected Instance |
getInstance(int depth)
Gets the instance attribute of the MovieBuilder object |
Movie |
getMovie()
Gets the movie attribute of the MovieBuilder object |
protected Symbol |
getSymbol(int id)
Gets the symbol attribute of the MovieBuilder object |
void |
header(int version,
long length,
int twipsWidth,
int twipsHeight,
int frameRate,
int frameCount)
SWFHeader interface. |
protected void |
saveInstance(int depth,
Instance inst)
Description of the Method |
protected void |
saveSymbol(int id,
Symbol s)
Description of the Method |
void |
tag(int tagType,
boolean longTag,
byte[] contents)
SWFTags interface |
void |
tagButtonCXForm(int buttonId,
ColorTransform transform)
SWFTagTypes interface |
void |
tagDefineBits(int id,
byte[] imageData)
Description of the Method |
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)
Description of the Method |
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)
Description of the Method |
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)
Description of the Method |
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)
Description of the Method |
void |
tagGeneratorCommand(byte[] data)
Description of the Method |
void |
tagGeneratorFont(byte[] data)
Description of the Method |
void |
tagGeneratorText(byte[] data)
Description of the Method |
void |
tagImport(java.lang.String movieName,
java.lang.String[] names,
int[] ids)
SWFTagTypes interface |
void |
tagJPEGTables(byte[] jpegEncodingData)
Description of the Method |
void |
tagNameCharacter(byte[] data)
Description of the Method |
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)
Description of the Method |
void |
tagSetBackgroundColor(Color color)
SWFTagTypes interface |
void |
tagShowFrame()
SWFTagTypes interface |
void |
tagSoundStreamBlock(byte[] soundData)
Description of the Method |
void |
tagSoundStreamHead(int playbackFrequency,
boolean playback16bit,
boolean playbackStereo,
int streamFormat,
int streamFrequency,
boolean stream16bit,
boolean streamStereo,
int averageSampleCount)
Description of the Method |
void |
tagSoundStreamHead2(int playbackFrequency,
boolean playback16bit,
boolean playbackStereo,
int streamFormat,
int streamFrequency,
boolean stream16bit,
boolean streamStereo,
int averageSampleCount)
Description of the Method |
void |
tagStartSound(int soundId,
SoundInfo info)
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 Movie movie
protected MovieClip clip
protected boolean newMovie
protected Frame frame
protected java.util.Map symbols
protected TimeLine timeline
protected java.util.Map instances
| Constructor Detail |
|---|
public MovieBuilder()
public MovieBuilder(Movie movie)
movie - Description of the Parameter
protected MovieBuilder(MovieBuilder parent,
MovieClip clip)
parent - Description of the Parameterclip - Description of the Parameter| Method Detail |
|---|
public Movie getMovie()
public java.util.Map getDefinedSymbols()
protected Symbol getSymbol(int id)
id - Description of the Parameter
protected void saveSymbol(int id,
Symbol s)
id - Description of the Parameters - Description of the Parameterprotected Instance getInstance(int depth)
depth - Description of the Parameter
protected void saveInstance(int depth,
Instance inst)
depth - Description of the Parameterinst - Description of the Parameter
public void tag(int tagType,
boolean longTag,
byte[] contents)
throws java.io.IOException
tag in interface SWFTagstagType - Description of the ParameterlongTag - Description of the Parametercontents - Description of the Parameter
java.io.IOException - Description of the Exception
public void header(int version,
long length,
int twipsWidth,
int twipsHeight,
int frameRate,
int frameCount)
throws java.io.IOException
header in interface SWFHeaderversion - 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 Exception
public void tagEnd()
throws java.io.IOException
tagEnd in interface SWFSpriteTagTypesjava.io.IOException - Description of the Exception
public void tagShowFrame()
throws java.io.IOException
tagShowFrame in interface SWFSpriteTagTypesjava.io.IOException - Description of the Exceptionprotected Frame currentFrame()
public void tagDefineSound(int id,
int format,
int frequency,
boolean bits16,
boolean stereo,
int sampleCount,
byte[] soundData)
throws java.io.IOException
tagDefineSound in interface SWFTagTypesid - 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 Exception
public 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 SWFTagTypesbuttonId - 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 Exception
public void tagStartSound(int soundId,
SoundInfo info)
throws java.io.IOException
tagStartSound in interface SWFSpriteTagTypessoundId - Description of the Parameterinfo - Description of the Parameter
java.io.IOException - Description of the Exception
public 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 SWFSpriteTagTypesplaybackFrequency - 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 Exception
public 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 SWFSpriteTagTypesplaybackFrequency - 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 Exception
public void tagSoundStreamBlock(byte[] soundData)
throws java.io.IOException
tagSoundStreamBlock in interface SWFSpriteTagTypessoundData - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagSerialNumber(java.lang.String serialNumber)
throws java.io.IOException
tagSerialNumber in interface SWFTagTypesserialNumber - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagGenerator(byte[] data)
throws java.io.IOException
tagGenerator in interface SWFTagTypesdata - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagGeneratorText(byte[] data)
throws java.io.IOException
tagGeneratorText in interface SWFTagTypesdata - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagGeneratorCommand(byte[] data)
throws java.io.IOException
tagGeneratorCommand in interface SWFTagTypesdata - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagGeneratorFont(byte[] data)
throws java.io.IOException
tagGeneratorFont in interface SWFTagTypesdata - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagNameCharacter(byte[] data)
throws java.io.IOException
tagNameCharacter in interface SWFTagTypesdata - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagDefineBits(int id,
byte[] imageData)
throws java.io.IOException
tagDefineBits in interface SWFTagTypesid - Description of the ParameterimageData - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagJPEGTables(byte[] jpegEncodingData)
throws java.io.IOException
tagJPEGTables in interface SWFTagTypesjpegEncodingData - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagDefineBitsJPEG3(int id,
byte[] imageData,
byte[] alphaData)
throws java.io.IOException
tagDefineBitsJPEG3 in interface SWFTagTypesid - Description of the ParameterimageData - Description of the ParameteralphaData - Description of the Parameter
java.io.IOException - Description of the Exception
public SWFActions tagDoAction()
throws java.io.IOException
tagDoAction in interface SWFSpriteTagTypesjava.io.IOException - Description of the Exception
public SWFShape tagDefineShape(int id,
Rect outline)
throws java.io.IOException
tagDefineShape in interface SWFTagTypesid - Description of the Parameteroutline - Description of the Parameter
java.io.IOException - Description of the Exception
public SWFShape tagDefineShape2(int id,
Rect outline)
throws java.io.IOException
tagDefineShape2 in interface SWFTagTypesid - Description of the Parameteroutline - Description of the Parameter
java.io.IOException - Description of the Exception
public SWFShape tagDefineShape3(int id,
Rect outline)
throws java.io.IOException
tagDefineShape3 in interface SWFTagTypesid - Description of the Parameteroutline - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagFreeCharacter(int charId)
throws java.io.IOException
tagFreeCharacter in interface SWFSpriteTagTypescharId - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagPlaceObject(int charId,
int depth,
Matrix matrix,
AlphaTransform cxform)
throws java.io.IOException
tagPlaceObject in interface SWFSpriteTagTypescharId - Description of the Parameterdepth - Description of the Parametermatrix - Description of the Parametercxform - Description of the Parameter
java.io.IOException - Description of the Exception
public 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 SWFSpriteTagTypesisMove - 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 Exception
public void tagRemoveObject(int charId,
int depth)
throws java.io.IOException
tagRemoveObject in interface SWFSpriteTagTypescharId - Description of the Parameterdepth - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagRemoveObject2(int depth)
throws java.io.IOException
tagRemoveObject2 in interface SWFSpriteTagTypesdepth - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagSetBackgroundColor(Color color)
throws java.io.IOException
tagSetBackgroundColor in interface SWFTagTypescolor - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagFrameLabel(java.lang.String label)
throws java.io.IOException
tagFrameLabel in interface SWFSpriteTagTypeslabel - Description of the Parameter
java.io.IOException - Description of the Exception
public SWFTagTypes tagDefineSprite(int id)
throws java.io.IOException
tagDefineSprite in interface SWFTagTypesid - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagProtect(byte[] password)
throws java.io.IOException
tagProtect in interface SWFTagTypespassword - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagEnableDebug(byte[] password)
throws java.io.IOException
tagEnableDebug in interface SWFTagTypespassword - Description of the Parameter
java.io.IOException - Description of the Exception
public SWFVectors tagDefineFont(int id,
int numGlyphs)
throws java.io.IOException
tagDefineFont in interface SWFTagTypesid - Description of the ParameternumGlyphs - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagDefineFontInfo(int fontId,
java.lang.String fontName,
int flags,
int[] codes)
throws java.io.IOException
tagDefineFontInfo in interface SWFTagTypesfontId - Description of the ParameterfontName - Description of the Parameterflags - Description of the Parametercodes - Description of the Parameter
java.io.IOException - Description of the Exception
public 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 SWFTagTypesid - 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 Exception
public 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 SWFTagTypesfieldId - 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 Exception
public SWFText tagDefineText(int id,
Rect bounds,
Matrix matrix)
throws java.io.IOException
tagDefineText in interface SWFTagTypesid - Description of the Parameterbounds - Description of the Parametermatrix - Description of the Parameter
java.io.IOException - Description of the Exception
public SWFText tagDefineText2(int id,
Rect bounds,
Matrix matrix)
throws java.io.IOException
tagDefineText2 in interface SWFTagTypesid - Description of the Parameterbounds - Description of the Parametermatrix - Description of the Parameter
java.io.IOException - Description of the Exception
public SWFActions tagDefineButton(int id,
java.util.List buttonRecords)
throws java.io.IOException
tagDefineButton in interface SWFTagTypesid - 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 SWFTagTypesbuttonId - Description of the Parametertransform - Description of the Parameter
java.io.IOException - Description of the Exception
public SWFActions tagDefineButton2(int id,
boolean trackAsMenu,
java.util.List buttonRecord2s)
throws java.io.IOException
tagDefineButton2 in interface SWFTagTypesid - 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 SWFTagTypesnames - Description of the Parameterids - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagImport(java.lang.String movieName,
java.lang.String[] names,
int[] ids)
throws java.io.IOException
tagImport in interface SWFTagTypesmovieName - Description of the Parameternames - Description of the Parameterids - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagDefineQuickTimeMovie(int id,
java.lang.String filename)
throws java.io.IOException
tagDefineQuickTimeMovie in interface SWFTagTypesid - Description of the Parameterfilename - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagDefineBitsJPEG2(int id,
byte[] data)
throws java.io.IOException
tagDefineBitsJPEG2 in interface SWFTagTypesid - Description of the Parameterdata - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagDefineBitsJPEG2(int id,
java.io.InputStream jpegImage)
throws java.io.IOException
tagDefineBitsJPEG2 in interface SWFTagTypesid - Description of the ParameterjpegImage - Description of the Parameter
java.io.IOException - Description of the Exception
public void tagDefineBitsLossless(int id,
int format,
int width,
int height,
Color[] colors,
byte[] imageData)
throws java.io.IOException
tagDefineBitsLossless in interface SWFTagTypesid - 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 Exception
public void tagDefineBitsLossless2(int id,
int format,
int width,
int height,
Color[] colors,
byte[] imageData)
throws java.io.IOException
tagDefineBitsLossless2 in interface SWFTagTypesid - 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 Exception
public SWFShape tagDefineMorphShape(int id,
Rect startBounds,
Rect endBounds)
throws java.io.IOException
tagDefineMorphShape in interface SWFTagTypesid - Description of the ParameterstartBounds - Description of the ParameterendBounds - 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 | |||||||||