|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.tumba.parser.swf.Movie
public class Movie
A Flash Movie
Field Summary | |
---|---|
protected Color |
backColor
Description of the Field |
protected java.util.Map |
definedSymbols
Description of the Field |
protected int |
depth
Description of the Field |
protected java.util.List |
exportedSymbols
Description of the Field |
protected int |
frameCount
Description of the Field |
protected int |
frameRate
Description of the Field |
protected java.util.SortedMap |
frames
Description of the Field |
protected int |
height
Description of the Field |
protected java.util.Map |
importLibraries
Description of the Field |
protected boolean |
isProtected
Description of the Field |
protected int |
maxId
Description of the Field |
protected int |
version
Description of the Field |
protected int |
width
Description of the Field |
Constructor Summary | |
---|---|
Movie()
Create a movie with the default values - (550x400), 12 frames/sec, white backcolor, Flash version 5. |
|
Movie(int width,
int height,
int frameRate,
int version,
Color backColor)
Create a movie with the given properties |
Method Summary | |
---|---|
Frame |
appendFrame()
Append a frame to the end of the timeline |
void |
clearExports()
Clear all the symbol exports |
void |
clearImports()
Clear all the defined library imports |
void |
exportSymbols(java.lang.String[] exportNames,
Symbol[] symbols)
Export a number of symbols with the given names so that other movies can import and use them. |
int |
getAvailableDepth()
Get the next available depth in the timeline |
Color |
getBackColor()
Gets the backColor attribute of the Movie object |
ExportedSymbol[] |
getExportedSymbols()
Get the symbols exported from the movie |
Frame |
getFrame(int frameNumber)
Get the Frame object for the given frame number - or create one if none exists. |
int |
getFrameCount()
Get the current number of frames in the timeline. |
int |
getFrameRate()
Gets the frameRate attribute of the Movie object |
int |
getHeight()
Gets the height attribute of the Movie object |
ImportedSymbol[] |
getImportedSymbols()
Access the imported symbols. |
int |
getVersion()
Gets the version attribute of the Movie object |
int |
getWidth()
Gets the width attribute of the Movie object |
ImportedSymbol[] |
importSymbols(java.lang.String libraryName,
java.lang.String[] symbolNames)
Import symbols from another movie (Flash 5 only) |
boolean |
isProtected()
Return the protection flag. |
void |
protect(boolean isProtected)
Description of the Method |
void |
setAvailableDepth(int depth)
Set the next available depth in the timeline |
void |
setBackColor(Color color)
Sets the backColor attribute of the Movie object |
void |
setFrameRate(int rate)
Sets the frameRate attribute of the Movie object |
void |
setHeight(int height)
Sets the height attribute of the Movie object |
void |
setVersion(int version)
Sets the version attribute of the Movie object |
void |
setWidth(int width)
Sets the width attribute of the Movie object |
void |
write(java.io.OutputStream out)
Write the movie in SWF format to the given output stream. |
void |
write(java.lang.String filename)
Write the movie in SWF format to the given file. |
void |
write(SWFTagTypes tagwriter)
Write the movie in SWF format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int width
protected int height
protected int frameRate
protected Color backColor
protected int version
protected boolean isProtected
protected java.util.Map importLibraries
protected java.util.List exportedSymbols
protected java.util.SortedMap frames
protected int frameCount
protected java.util.Map definedSymbols
protected int depth
protected int maxId
Constructor Detail |
---|
public Movie()
public Movie(int width, int height, int frameRate, int version, Color backColor)
width
- Description of the Parameterheight
- Description of the ParameterframeRate
- Description of the Parameterversion
- Description of the ParameterbackColor
- Description of the ParameterMethod Detail |
---|
public int getWidth()
public int getHeight()
public int getFrameRate()
public int getVersion()
public Color getBackColor()
public void setWidth(int width)
width
- The new width valuepublic void setHeight(int height)
height
- The new height valuepublic void setFrameRate(int rate)
rate
- The new frameRate valuepublic void setVersion(int version)
version
- The new version valuepublic void setBackColor(Color color)
color
- The new backColor valuepublic boolean isProtected()
public void protect(boolean isProtected)
isProtected
- Description of the Parameterpublic int getFrameCount()
getFrameCount
in interface TimeLine
public Frame getFrame(int frameNumber)
getFrame
in interface TimeLine
frameNumber
- must be 1 or larger
public Frame appendFrame()
appendFrame
in interface TimeLine
public int getAvailableDepth()
getAvailableDepth
in interface TimeLine
public void setAvailableDepth(int depth)
setAvailableDepth
in interface TimeLine
depth
- must be >= 1public ImportedSymbol[] importSymbols(java.lang.String libraryName, java.lang.String[] symbolNames)
libraryName
- Description of the ParametersymbolNames
- Description of the Parameter
public void clearImports()
public ImportedSymbol[] getImportedSymbols()
public void exportSymbols(java.lang.String[] exportNames, Symbol[] symbols)
exportNames
- Description of the Parametersymbols
- Description of the Parameterpublic ExportedSymbol[] getExportedSymbols()
public void clearExports()
public void write(SWFTagTypes tagwriter) throws java.io.IOException
tagwriter
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void write(java.lang.String filename) throws java.io.IOException
filename
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void write(java.io.OutputStream out) throws java.io.IOException
out
- 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 |