|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.FSTransformObject
com.flagstone.transform.FSMovieObject
public abstract class FSMovieObject
The FSMovieObject is the root class for objects that represent each of the tagged data structures that make up the Flash file format specification. Each of the major data structures defined in the Flash file format specification start with a header that contains the type identifying the data structure followed by the number of bytes that the body of the encoded data structure occupies in the file. The FSMovieObject manages the encoding and decoding of this information. This class is primarily used internally in the library however the getType() method is useful when manipulating decoded Flash files. Rather than using the runtime type checking provided in the Java environment the method can be used to identify the class, derived from FSMovieObject, that represents each data structure, improving performance.
Field Summary | |
---|---|
static int |
ButtonColorTransform
|
static int |
ButtonSound
|
static int |
DefineBitsPtr
|
static int |
DefineButton
Type used to identify DefineButton objects. |
static int |
DefineButton2
|
static int |
DefineFont
Type used to identify DefineFont objects. |
static int |
DefineFont2
|
static int |
DefineImage
|
static int |
DefineImage2
|
static int |
DefineJPEGImage
Type used to identify DefineJPEGImage objects. |
static int |
DefineJPEGImage2
|
static int |
DefineJPEGImage3
|
static int |
DefineMorphShape
|
static int |
DefineMovieClip
|
static int |
DefineShape
Type used to identify DefineShape objects. |
static int |
DefineShape2
|
static int |
DefineShape3
|
static int |
DefineSound
Type used to identify DefineSound objects. |
static int |
DefineText
Type used to identify DefineText objects. |
static int |
DefineText2
|
static int |
DefineTextField
|
static int |
DefineVideo
|
static int |
DoAction
Type used to identify DoAction objects. |
static int |
EnableDebugger
|
static int |
EnableDebugger2
|
static int |
Export
|
protected boolean |
extendLength
|
static int |
FontInfo
Type used to identify FontInfo objects. |
static int |
FontInfo2
|
static int |
FrameLabel
|
static int |
Free
|
static int |
Import
|
static int |
Initialize
|
static int |
JPEGTables
Type used to identify JPEGTables objects. |
protected int |
length
|
static int |
LimitScript
|
static int |
PathsArePostscript
|
static int |
PlaceObject
Type used to identify PlaceObject objects. |
static int |
PlaceObject2
|
static int |
Protect
|
static int |
QuicktimeMovie
|
static int |
RemoveObject
Type used to identify RemoveObject objects. |
static int |
RemoveObject2
|
static int |
SerialNumber
|
static int |
SetBackgroundColor
Type used to identify SetBackgroundColor objects. |
static int |
ShowFrame
Type used to identify ShowFrame objects. |
static int |
SoundStreamBlock
Type used to identify SoundStreamBlock objects. |
static int |
SoundStreamHead
Type used to identify SoundStreamHead objects. |
static int |
SoundStreamHead2
|
static int |
StartSound
Type used to identify StartSound objects. |
static int |
TabOrder
|
protected int |
type
|
static int |
VideoFrame
|
Constructor Summary | |
---|---|
protected |
FSMovieObject(FSMovieObject obj)
Constructs a movie object by copying an existing one. |
protected |
FSMovieObject(int aType)
Constructs a movie object with the specified type. |
Method Summary | |
---|---|
void |
appendDescription(java.lang.StringBuffer buffer,
int depth)
AppendDescription is used to present a string description of the object including all nested objects up to a specified depth. |
void |
decode(FSCoder coder)
|
void |
encode(FSCoder coder)
|
boolean |
equals(java.lang.Object anObject)
Returns true if anObject is equal to this one. |
int |
getType()
Gets the code used that identifies the type of the object when it is encoded. |
int |
length(FSCoder coder)
|
Methods inherited from class com.flagstone.transform.FSTransformObject |
---|
clone, name, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ShowFrame
public static final int DefineShape
public static final int PlaceObject
public static final int RemoveObject
public static final int DefineJPEGImage
public static final int DefineButton
public static final int JPEGTables
public static final int SetBackgroundColor
public static final int DefineFont
public static final int DefineText
public static final int DoAction
public static final int FontInfo
public static final int DefineSound
public static final int StartSound
public static final int SoundStreamHead
public static final int SoundStreamBlock
public static final int ButtonSound
public static final int DefineImage
public static final int DefineJPEGImage2
public static final int DefineShape2
public static final int ButtonColorTransform
public static final int Protect
public static final int Free
public static final int PlaceObject2
public static final int RemoveObject2
public static final int DefineShape3
public static final int DefineText2
public static final int DefineButton2
public static final int DefineJPEGImage3
public static final int DefineImage2
public static final int DefineMovieClip
public static final int FrameLabel
public static final int SoundStreamHead2
public static final int DefineMorphShape
public static final int DefineFont2
public static final int PathsArePostscript
public static final int DefineTextField
public static final int QuicktimeMovie
public static final int SerialNumber
public static final int DefineBitsPtr
public static final int Export
public static final int Import
public static final int EnableDebugger
public static final int Initialize
public static final int DefineVideo
public static final int VideoFrame
public static final int FontInfo2
public static final int EnableDebugger2
public static final int LimitScript
public static final int TabOrder
protected int type
protected int length
protected boolean extendLength
Constructor Detail |
---|
protected FSMovieObject(int aType)
aType
- an identifier indicating the type of movie object.protected FSMovieObject(FSMovieObject obj)
obj
- an FSMovieObject object.Method Detail |
---|
public int getType()
public boolean equals(java.lang.Object anObject)
equals
in class FSTransformObject
public void appendDescription(java.lang.StringBuffer buffer, int depth)
FSTransformObject
appendDescription
in class FSTransformObject
buffer
- a StringBuffer to which the description of each object is
appended.depth
- the maximum level of nesting up to which objects will be
displayed.public int length(FSCoder coder)
length
in class FSTransformObject
public void encode(FSCoder coder)
encode
in class FSTransformObject
public void decode(FSCoder coder)
decode
in class FSTransformObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |