|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.sound.Envelope
public final class Envelope
Envelope is a container class for Level objects that describe how the volume of a sound changes over time.
| Nested Class Summary | |
|---|---|
class |
Envelope.Level
Level describes the sound levels for stereo sound. |
| Constructor Summary | |
|---|---|
Envelope(Envelope object)
Creates and initialises an Envelope object using the values copied from another Envelope object. |
|
Envelope(SWFDecoder coder)
Creates and initialises an Envelope object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
Envelope |
add(Envelope.Level level)
Add a Envelope object to the list of envelope objects. |
Envelope |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
List<Envelope.Level> |
getLevels()
Get the list of Levels that control the volume of the sound. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setLevels(List<Envelope.Level> list)
Sets the list of Levels that define the levels at which a sound is played over the duration of the sound. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Envelope(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.public Envelope(Envelope object)
object - an Envelope object from which the values will be
copied.| Method Detail |
|---|
public Envelope add(Envelope.Level level)
level - a SoundLevel object. Must not be null.
public List<Envelope.Level> getLevels()
public void setLevels(List<Envelope.Level> list)
list - a list of Envelope objects. Must not be null.public Envelope copy()
copy in interface Copyable<Envelope>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 | |||||||||