|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.tumba.parser.swf.Placement
public class Placement
A Placement holds the transformation and other values relating to the "placement" of a Symbol Instance within a particular frame.
Field Summary | |
---|---|
protected Actions[] |
clipActions
Description of the Field |
protected int |
clipDepth
Description of the Field |
protected AlphaTransform |
cxform
Description of the Field |
protected int |
frameNumber
Description of the Field |
protected Instance |
instance
Description of the Field |
protected boolean |
isAlteration
Description of the Field |
protected boolean |
isRemove
Description of the Field |
protected boolean |
isReplacement
Description of the Field |
protected Transform |
matrix
Description of the Field |
protected java.lang.String |
name
Description of the Field |
protected int |
ratio
Description of the Field |
Constructor Summary | |
---|---|
protected |
Placement(Instance instance,
int frameNumber)
Constructor for the Placement object |
protected |
Placement(Instance instance,
Transform matrix,
AlphaTransform cxform,
java.lang.String name,
int ratio,
int clipDepth,
int frameNumber,
boolean alteration,
boolean replacement,
Actions[] clipActions)
Constructor for the Placement object |
Method Summary | |
---|---|
protected void |
flushDefinitions(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
Description of the Method |
Actions[] |
getClipActions()
Get the actions for a movie clip |
int |
getClipDepth()
The clip depth defines the range of depths which will be clipped by this symbol. |
AlphaTransform |
getColorTransform()
The color transform may be null |
int |
getFrameNumber()
Get the number of the frame within which this placement takes place |
Instance |
getInstance()
Get the Symbol Instance represented by this Placement |
java.lang.String |
getName()
The name only relates to MovieClip instances and may be null. |
int |
getRatio()
The ratio only relates to Morph Shapes and will be -1 otherwise. |
Transform |
getTransform()
The transform may be null |
boolean |
isAlteration()
Return true if this placement is an alteration to an Instance that was placed in a previous frame. |
boolean |
isRemove()
If true then this Placement denotes the removal of the Instance from the stage. |
boolean |
isReplacement()
Return true if the placement is replacing the symbol at a given depth with a new symbol |
void |
setClipActions(Actions[] clipActions)
Set the actions for a movie clip |
protected void |
write(Movie movie,
SWFTagTypes movieTagWriter,
SWFTagTypes timelineTagWriter)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean isAlteration
protected boolean isReplacement
protected int frameNumber
protected Instance instance
protected Transform matrix
protected AlphaTransform cxform
protected java.lang.String name
protected int ratio
protected int clipDepth
protected boolean isRemove
protected Actions[] clipActions
Constructor Detail |
---|
protected Placement(Instance instance, int frameNumber)
instance
- Description of the ParameterframeNumber
- Description of the Parameterprotected Placement(Instance instance, Transform matrix, AlphaTransform cxform, java.lang.String name, int ratio, int clipDepth, int frameNumber, boolean alteration, boolean replacement, Actions[] clipActions)
instance
- Description of the Parametermatrix
- Description of the Parametercxform
- Description of the Parametername
- Description of the Parameterratio
- Description of the ParameterclipDepth
- Description of the ParameterframeNumber
- Description of the Parameteralteration
- Description of the Parameterreplacement
- Description of the ParameterclipActions
- Description of the ParameterMethod Detail |
---|
public boolean isReplacement()
public boolean isAlteration()
public int getFrameNumber()
public Instance getInstance()
public Transform getTransform()
public AlphaTransform getColorTransform()
public java.lang.String getName()
public int getRatio()
public int getClipDepth()
public boolean isRemove()
public Actions[] getClipActions()
public void setClipActions(Actions[] clipActions)
clipActions
- The new clipActions valueprotected void flushDefinitions(Movie movie, SWFTagTypes timelineWriter, SWFTagTypes definitionWriter) throws java.io.IOException
movie
- Description of the ParametertimelineWriter
- Description of the ParameterdefinitionWriter
- Description of the Parameter
java.io.IOException
- Description of the Exceptionprotected void write(Movie movie, SWFTagTypes movieTagWriter, SWFTagTypes timelineTagWriter) throws java.io.IOException
movie
- Description of the ParametermovieTagWriter
- Description of the ParametertimelineTagWriter
- Description of the Parameter
java.io.IOException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |