|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.Place3
public final class Place3
Place3 is used to update the display list. It extends Place2 by specifying a Blend which controls how an object is composited with its background and also Filters which can be used to create special effects such as drop shadows etc.
Place2
Constructor Summary | |
---|---|
Place3()
Creates an uninitialised Place3 object. |
|
Place3(Place3 object)
Creates and initialises a Place3 object using the values copied from another Place3 object. |
|
Place3(SWFDecoder coder,
Context context)
Creates and initialises a Place3 object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
Place3 |
add(EventHandler aClipEvent)
Adds a clip event to the list of clip events. |
Place3 |
add(Filter filter)
Adds a Filter to the list of filters. |
Place3 |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
Integer |
getBitmapCache()
Get the value indicating whether the display object will be cached as a bitmap (non-zero) or not cached (zero). |
Blend |
getBlend()
Get the blend that describes how the object will be rendered in relation to the background. |
String |
getClassName()
Get the name of the Actionscript 3 class which will be used to render the object to be displayed. |
ColorTransform |
getColorTransform()
Get the colour transform. |
Integer |
getDepth()
Get the number of layers that will be clipped by the object placed on the layer specified in this object. |
List<EventHandler> |
getEvents()
Get the list of event handlers that define the actions that will be executed in response to events that occur in the movie clip being placed. |
List<Filter> |
getFilters()
Get the list of filters that will be applied to the object when it is displayed as a bitmap. |
int |
getIdentifier()
Get the identifier of the object to be placed. |
int |
getLayer()
Get the Layer on which the object will be displayed in the display list. |
String |
getName()
Get the name of the object. |
Integer |
getRatio()
Get the morph ratio, in the range 0..65535 that defines the progress in the morphing process performed by the Flash Player from the defined start and end shapes. |
CoordTransform |
getTransform()
Get the coordinate transform. |
PlaceType |
getType()
Get the type of place operation being performed, either adding a new object, replacing an existing one with another or modifying an existing object. |
static Place3 |
move(int layer,
int xCoord,
int yCoord)
Change the position of a displayed object. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
static Place3 |
replace(int identifier,
int layer)
Replace an existing object with another. |
static Place3 |
replace(int identifier,
int layer,
int xCoord,
int yCoord)
Replace an existing object with another. |
Place3 |
setBitmapCache(Integer cache)
Set whether the displayed object should be cached as a bitmap. |
Place3 |
setBlend(Blend mode)
Set the blend that describes how the object will be rendered in relation to the background. |
Place3 |
setClassName(String aName)
Set the name of the Actionscript 3 class which will be used to render the object to be displayed. |
Place3 |
setColorTransform(ColorTransform cxform)
Sets the colour transform that defines the colour effects applied to the object. |
Place3 |
setDepth(Integer aNumber)
Sets the number of layers that this object will mask. |
void |
setEvents(List<EventHandler> list)
Set the list of Clip events. |
void |
setFilters(List<Filter> list)
Set the list of filters that will be applied to the object when it is displayed as a bitmap. |
Place3 |
setIdentifier(int uid)
Sets the identifier of the object. |
Place3 |
setLayer(int aLayer)
Sets the layer at which the object will be placed. |
Place3 |
setName(String aString)
Set the name of an object to be displayed. |
Place3 |
setRatio(Integer aNumber)
Sets point of the morphing process for a morph shape in the range 0..65535. |
Place3 |
setTransform(CoordTransform matrix)
Sets the coordinate transform that defines the position where the object will be displayed. |
Place3 |
setType(PlaceType aType)
Sets the type of placement. |
static Place3 |
show(int identifier,
int layer,
int xCoord,
int yCoord)
Place a new object on the display list. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Place3(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 Place3()
public Place3(Place3 object)
object
- a Place3 object from which the values will be
copied.Method Detail |
---|
public static Place3 show(int identifier, int layer, int xCoord, int yCoord)
identifier
- the unique identifier for the object.layer
- the layer where it will be displayed.xCoord
- the x-coordinate where the object's origin will be.yCoord
- the y-coordinate where the object's origin will be.
public static Place3 move(int layer, int xCoord, int yCoord)
layer
- the display list layer where the object is displayed.xCoord
- the x-coordinate where the object's origin will be moved.yCoord
- the y-coordinate where the object's origin will be moved.
public static Place3 replace(int identifier, int layer)
identifier
- the unique identifier of the new object.layer
- the display list layer of the existing object.
public static Place3 replace(int identifier, int layer, int xCoord, int yCoord)
identifier
- the unique identifier of the new object.layer
- the display list layer of the existing object.xCoord
- the x-coordinate where the new object's origin will be.yCoord
- the y-coordinate where the new object's origin will be.
public PlaceType getType()
public Place3 setType(PlaceType aType)
aType
- the type of operation to be performed, either New, Modify or
Replace.
public int getLayer()
public Place3 setLayer(int aLayer)
aLayer
- the layer number on which the object is being displayed. Must
be in the range 1..65535.
public int getIdentifier()
public Place3 setIdentifier(int uid)
uid
- the identifier of a new object to be displayed. Must be in the
range 1..65535.
public CoordTransform getTransform()
public Place3 setTransform(CoordTransform matrix)
matrix
- an CoordTransform object that will be applied to the object
displayed.
public ColorTransform getColorTransform()
public Place3 setColorTransform(ColorTransform cxform)
cxform
- an ColorTransform object that will be applied to the object
displayed.
public Integer getRatio()
public Place3 setRatio(Integer aNumber)
aNumber
- the progress in the morphing process.
public Integer getDepth()
public Place3 setDepth(Integer aNumber)
aNumber
- the number of layers clipped.
public String getName()
public Place3 setName(String aString)
aString
- the name assigned to the object.
public Integer getBitmapCache()
public Place3 setBitmapCache(Integer cache)
cache
- set to a non-zero value if the object should be cached as
a bitmap or to zero to disable caching.
public String getClassName()
public Place3 setClassName(String aName)
aName
- the name of the Actionscript class.
public List<Filter> getFilters()
public void setFilters(List<Filter> list)
list
- the list of bitmap filters.public Blend getBlend()
public Place3 setBlend(Blend mode)
mode
- the Blend that describes how the object is composited.
public Place3 add(EventHandler aClipEvent)
aClipEvent
- a clip event object.
public List<EventHandler> getEvents()
public void setEvents(List<EventHandler> list)
list
- a list of ClipEvent objects.public Place3 add(Filter filter)
filter
- a Filter object.
public Place3 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 |