pt.tumba.parser.swf
Class Button.Layer

java.lang.Object
  extended by pt.tumba.parser.swf.Button.Layer
Enclosing class:
Button

public static class Button.Layer
extends java.lang.Object

A layer of a button. The layer defines a symbol (Shape etc.) with associated Transform and color transform. There may be many layers in a button and each layer may take part in one or more of the 4 button states (up,over,down,hit-test).

Author:
unknown

Field Summary
protected  AlphaTransform cxform
          Description of the Field
protected  int depth
          Description of the Field
protected  Transform matrix
          Description of the Field
protected  Symbol symbol
          Description of the Field
protected  boolean usedForDown
          Description of the Field
protected  boolean usedForHitArea
          Description of the Field
protected  boolean usedForOver
          Description of the Field
protected  boolean usedForUp
          Description of the Field
 
Constructor Summary
Button.Layer(Symbol symbol, Transform matrix, AlphaTransform cxform, int depth, boolean usedForHitArea, boolean usedForUp, boolean usedForDown, boolean usedForOver)
           
 
Method Summary
 AlphaTransform getColoring()
          Gets the coloring attribute of the Layer object
 int getDepth()
          Gets the depth attribute of the Layer object
protected  ButtonRecord2 getRecord(Movie movie, SWFTagTypes timelineWriter, SWFTagTypes definitionWriter)
          Gets the record attribute of the Layer object
 Symbol getSymbol()
          Gets the symbol attribute of the Layer object
 Transform getTransform()
          Gets the transform attribute of the Layer object
 boolean isUsedForDown()
          Gets the usedForDown attribute of the Layer object
 boolean isUsedForHitArea()
          Gets the usedForHitArea attribute of the Layer object
 boolean isUsedForOver()
          Gets the usedForOver attribute of the Layer object
 boolean isUsedForUp()
          Gets the usedForUp attribute of the Layer object
 void setColoring(AlphaTransform cxform)
          Sets the coloring attribute of the Layer object
 void setDepth(int depth)
          Sets the depth attribute of the Layer object
 void setSymbol(Symbol symbol)
          Sets the symbol attribute of the Layer object
 void setTransform(Transform matrix)
          Sets the transform attribute of the Layer object
 void usedForDown(boolean f)
          Description of the Method
 void usedForHitArea(boolean f)
          Description of the Method
 void usedForOver(boolean f)
          Description of the Method
 void usedForUp(boolean f)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

symbol

protected Symbol symbol
Description of the Field


matrix

protected Transform matrix
Description of the Field


cxform

protected AlphaTransform cxform
Description of the Field


depth

protected int depth
Description of the Field


usedForHitArea

protected boolean usedForHitArea
Description of the Field


usedForUp

protected boolean usedForUp
Description of the Field


usedForDown

protected boolean usedForDown
Description of the Field


usedForOver

protected boolean usedForOver
Description of the Field

Constructor Detail

Button.Layer

public Button.Layer(Symbol symbol,
                    Transform matrix,
                    AlphaTransform cxform,
                    int depth,
                    boolean usedForHitArea,
                    boolean usedForUp,
                    boolean usedForDown,
                    boolean usedForOver)
Parameters:
depth - should be >= 1 and there should only be one symbol on any layer
symbol - Description of the Parameter
matrix - Description of the Parameter
cxform - Description of the Parameter
usedForHitArea - Description of the Parameter
usedForUp - Description of the Parameter
usedForDown - Description of the Parameter
usedForOver - Description of the Parameter
Method Detail

getSymbol

public Symbol getSymbol()
Gets the symbol attribute of the Layer object

Returns:
The symbol value

getTransform

public Transform getTransform()
Gets the transform attribute of the Layer object

Returns:
The transform value

getColoring

public AlphaTransform getColoring()
Gets the coloring attribute of the Layer object

Returns:
The coloring value

getDepth

public int getDepth()
Gets the depth attribute of the Layer object

Returns:
The depth value

isUsedForHitArea

public boolean isUsedForHitArea()
Gets the usedForHitArea attribute of the Layer object

Returns:
The usedForHitArea value

isUsedForUp

public boolean isUsedForUp()
Gets the usedForUp attribute of the Layer object

Returns:
The usedForUp value

isUsedForDown

public boolean isUsedForDown()
Gets the usedForDown attribute of the Layer object

Returns:
The usedForDown value

isUsedForOver

public boolean isUsedForOver()
Gets the usedForOver attribute of the Layer object

Returns:
The usedForOver value

setSymbol

public void setSymbol(Symbol symbol)
Sets the symbol attribute of the Layer object

Parameters:
symbol - The new symbol value

setTransform

public void setTransform(Transform matrix)
Sets the transform attribute of the Layer object

Parameters:
matrix - The new transform value

setColoring

public void setColoring(AlphaTransform cxform)
Sets the coloring attribute of the Layer object

Parameters:
cxform - The new coloring value

setDepth

public void setDepth(int depth)
Sets the depth attribute of the Layer object

Parameters:
depth - The new depth value

usedForHitArea

public void usedForHitArea(boolean f)
Description of the Method

Parameters:
f - Description of the Parameter

usedForUp

public void usedForUp(boolean f)
Description of the Method

Parameters:
f - Description of the Parameter

usedForDown

public void usedForDown(boolean f)
Description of the Method

Parameters:
f - Description of the Parameter

usedForOver

public void usedForOver(boolean f)
Description of the Method

Parameters:
f - Description of the Parameter

getRecord

protected ButtonRecord2 getRecord(Movie movie,
                                  SWFTagTypes timelineWriter,
                                  SWFTagTypes definitionWriter)
                           throws java.io.IOException
Gets the record attribute of the Layer object

Parameters:
movie - Description of the Parameter
timelineWriter - Description of the Parameter
definitionWriter - Description of the Parameter
Returns:
The record value
Throws:
java.io.IOException - Description of the Exception