|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.MovieHeader
public final class MovieHeader
MovieHeader contains the attributes that make up the header fields of a Flash file. Previously these were attributes of the Movie class.
| Constructor Summary | |
|---|---|
MovieHeader()
Construct a new MovieHeader with Flash version and compression set to the values supported in this version of Transform SWF. |
|
MovieHeader(MovieHeader object)
Creates and initialises a MovieAttributes object using the values copied from another MovieAttributes object. |
|
MovieHeader(SWFDecoder coder,
Context context)
Creates and initialises a MovieAttributes object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
MovieHeader |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
int |
getFrameCount()
Get the number of frames in the movie. |
float |
getFrameRate()
Get the number of frames played per second that the movie will be displayed at. |
Bounds |
getFrameSize()
Get the bounding rectangle that defines the size of the player screen. |
int |
getVersion()
Get the number representing the version of Flash that the movie represents. |
boolean |
isCompressed()
Is the movie compressed. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setCompressed(boolean compress)
Set whether the movie should be compressed when encoded. |
void |
setFrameCount(int count)
Set the number of frames in the movie. |
void |
setFrameRate(float rate)
Sets the number of frames played per second that the Player will display the coder. |
void |
setFrameSize(Bounds rect)
Sets the bounding rectangle that defines the size of the player screen. |
void |
setVersion(int aNumber)
Sets the Flash version supported in this Movie. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MovieHeader(SWFDecoder coder,
Context context)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.context - a Context object used to manage the decoders for different
type of object and to pass information on how objects are
decoded.
IOException - if an error occurs while decoding the data.public MovieHeader()
public MovieHeader(MovieHeader object)
object - a MovieAttributes object from which the values will be
copied.| Method Detail |
|---|
public int getVersion()
public void setVersion(int aNumber)
aNumber - the version of the Flash file format that this movie utilises.public Bounds getFrameSize()
public void setFrameSize(Bounds rect)
rect - the Bounds object that defines the frame size. Must not be
null.public float getFrameRate()
public void setFrameRate(float rate)
rate - the number of frames per second that the movie is played.public int getFrameCount()
public void setFrameCount(int count)
count - the number of frames in the movie.public boolean isCompressed()
public void setCompressed(boolean compress)
compress - true if the movie will be compressed, false if no
compression will be applied.public MovieHeader copy()
copy in interface Copyable<MovieTag>public String toString()
toString in class Objectpublic int prepareToEncode(Context context)
prepareToEncode in interface SWFEncodeablecontext - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder,
Context context)
throws IOException
encode in interface SWFEncodeablecoder - an SWFEncoder object.context - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException - if an error occurs while encoding the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||