|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.Background
public final class Background
Background sets the background colour displayed in every frame in the movie.
Although the colour is specified using an Color object the colour displayed is completely opaque - the alpha channel information in the object is ignored.
The background colour must be set before the first frame is displayed otherwise the background colour defaults to white. This is typically the first object in a coder. If more than one Background object is added to a movie then only first one sets the background colour. Subsequent objects are ignored.
Color
Constructor Summary | |
---|---|
Background(Background object)
Creates and initialises an Background object using the values copied from another Background object. |
|
Background(Color aColor)
Creates a Background object with a the specified colour. |
|
Background(SWFDecoder coder,
Context context)
Creates and initialises a Background object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
Background |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
Color |
getColor()
Get the colour for the movie background. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setColor(Color aColor)
Sets the colour for the movie background. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Background(SWFDecoder coder, Context context) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.context
- a Context object used to manage the decoders for different
type of object and to pass information on how objects are
decoded.
IOException
- if an error occurs while decoding the data.public Background(Color aColor)
aColor
- the colour for the background. Must not be null.public Background(Background object)
object
- a Background object from which the values will be
copied.Method Detail |
---|
public Color getColor()
public void setColor(Color aColor)
aColor
- the colour for the background. Must not be null.public Background 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 |