|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.SymbolClass
public final class SymbolClass
SymbolClass is used to export one or more Actionscript 3 classes so they can be used in another Flash file.
Constructor Summary | |
---|---|
SymbolClass()
Creates a SymbolClass object with an empty table. |
|
SymbolClass(Map<Integer,String> map)
Creates a SymbolClass object with the specified map. |
|
SymbolClass(SWFDecoder coder)
Creates and initialises a SymbolClass object using values encoded in the Flash binary format. |
|
SymbolClass(SymbolClass object)
Creates and initialises a SymbolClass object using the table values copied from another SymbolClass object. |
Method Summary | |
---|---|
SymbolClass |
add(int uid,
String aString)
Add a mapping for a unique identifier to an actionscript 3 class. |
SymbolClass |
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> |
getObjects()
Get the table that maps identifiers to actionscript 3 classes. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setObjects(Map<Integer,String> aTable)
Set the table that maps identifiers to actionscript 3 classes. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SymbolClass(SWFDecoder coder) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while decoding the data.public SymbolClass()
public SymbolClass(Map<Integer,String> map)
map
- the table containing identifier/class name pairs.public SymbolClass(SymbolClass object)
object
- a SymbolClass object from which the table will be
copied.Method Detail |
---|
public SymbolClass add(int uid, String aString)
uid
- the unique identifier for the object.aString
- the name of the actionscript 3 class that displays the
object.
public Map<Integer,String> getObjects()
public void setObjects(Map<Integer,String> aTable)
aTable
- the table of identifiers and class names.public SymbolClass copy()
copy
in interface Copyable<MovieTag>
public String toString()
toString
in class Object
public int prepareToEncode(Context context)
prepareToEncode
in interface SWFEncodeable
context
- 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 SWFEncodeable
coder
- 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 |