|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.ScenesAndLabels
public final class ScenesAndLabels
ScenesAndLabels is used to list the scenes (main timeline only) and labelled frames for movies and movie clips.
| Constructor Summary | |
|---|---|
ScenesAndLabels()
Creates a ScenesAndLabels object with empty tables for the scenes and labels. |
|
ScenesAndLabels(Map<Integer,String> sceneMap,
Map<Integer,String> labelMap)
Create a new ScenesAndLabels object with the specified list of scenes and labelled frames. |
|
ScenesAndLabels(ScenesAndLabels object)
Creates and initialises a ScenesAndLabels object using the values copied from another ScenesAndLabels object. |
|
ScenesAndLabels(SWFDecoder coder)
Creates and initialises a ScenesAndLabels object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
ScenesAndLabels |
addLabel(int offset,
String name)
Add an entry to the list of labelled frames with the frame number and frame label. |
ScenesAndLabels |
addScene(int offset,
String name)
Add an entry to the list of scenes with the frame number and scene name. |
ScenesAndLabels |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
Map<Integer,String> |
getLabels()
Get the table of frame numbers and frame labels. |
Map<Integer,String> |
getScenes()
Get the table of frame numbers and associated names. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setLabels(Map<Integer,String> map)
Set the table of frame numbers and associated names. |
void |
setScenes(Map<Integer,String> map)
Set the table of frame numbers and associated names. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScenesAndLabels(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.public ScenesAndLabels()
public ScenesAndLabels(Map<Integer,String> sceneMap,
Map<Integer,String> labelMap)
sceneMap - a table of frame numbers and the associated name for
the scenes on the main timeline of a movie.labelMap - a table of frame numbers and the associated name for
the labelled frames in a movie or movie clip.public ScenesAndLabels(ScenesAndLabels object)
object - a ScenesAndLabels object from which the values will be
copied.| Method Detail |
|---|
public ScenesAndLabels addScene(int offset,
String name)
offset - the frame number.name - the scene name.
public Map<Integer,String> getScenes()
public void setScenes(Map<Integer,String> map)
map - a table associating frame numbers to scene names.
public ScenesAndLabels addLabel(int offset,
String name)
offset - the frame number.name - the frame label.
public Map<Integer,String> getLabels()
public void setLabels(Map<Integer,String> map)
map - a table associating frame numbers to frame labels.public ScenesAndLabels 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 | |||||||||