|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.shape.ShapeData
public final class ShapeData
ShapeData is a convenience class for holding a set of encoded ShapeRecords so that a Shape can be lazily decoded.
Constructor Summary | |
---|---|
ShapeData(byte[] bytes)
Create a new ShapeData object with an array of encoded ShapeRecords. |
|
ShapeData(int size,
SWFDecoder coder)
Create a new ShapeData object initialised with an array of bytes containing the encoded records for a shape. |
|
ShapeData(ShapeData object)
Creates and initialises a ShapeData object using the values copied from another ShapeData object. |
Method Summary | |
---|---|
ShapeData |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
byte[] |
getData()
Get a copy of the encoded data for the action. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ShapeData(int size, SWFDecoder coder) throws IOException
size
- the number of bytes to read for the encoded shape data.coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while reading the encoded shape data.public ShapeData(byte[] bytes)
bytes
- the encoded ShapeRecords.public ShapeData(ShapeData object)
object
- a ShapeData object from which the values will be
copied.Method Detail |
---|
public byte[] getData()
public ShapeData copy()
copy
in interface Copyable<ShapeRecord>
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 |