pt.tumba.parser.swf
Class Button

java.lang.Object
  extended by pt.tumba.parser.swf.Symbol
      extended by pt.tumba.parser.swf.Button

public class Button
extends Symbol

A Button Symbol

Author:
unknown

Nested Class Summary
static class Button.Layer
          A layer of a button.
 
Field Summary
protected  java.util.List actions
          Description of the Field
protected  java.util.List layers
          Description of the Field
protected  boolean trackAsMenu
          Description of the Field
 
Fields inherited from class pt.tumba.parser.swf.Symbol
id
 
Constructor Summary
Button(boolean trackAsMenu)
          Constructor for the Button object
 
Method Summary
 Actions addActions(int conditionFlags, int flashVersion)
          Adds a feature to the Actions attribute of the Button object
 Button.Layer addLayer(Symbol symbol, Transform matrix, AlphaTransform cxform, int depth, boolean usedForHitArea, boolean usedForUp, boolean usedForDown, boolean usedForOver)
          Add a layer to the button.
protected  int defineSymbol(Movie movie, SWFTagTypes timelineWriter, SWFTagTypes definitionWriter)
          Description of the Method
 java.util.List getActions()
          Access the list of Actions objects
 java.util.List getButtonLayers()
          Access the list of Button.Layer objects
 boolean isTrackedAsMenu()
          Gets the trackedAsMenu attribute of the Button object
 void trackAsMenu(boolean f)
          Description of the Method
 
Methods inherited from class pt.tumba.parser.swf.Symbol
define, getId, getNextId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actions

protected java.util.List actions
Description of the Field


layers

protected java.util.List layers
Description of the Field


trackAsMenu

protected boolean trackAsMenu
Description of the Field

Constructor Detail

Button

public Button(boolean trackAsMenu)
Constructor for the Button object

Parameters:
trackAsMenu - Description of the Parameter
Method Detail

isTrackedAsMenu

public boolean isTrackedAsMenu()
Gets the trackedAsMenu attribute of the Button object

Returns:
The trackedAsMenu value

trackAsMenu

public void trackAsMenu(boolean f)
Description of the Method

Parameters:
f - Description of the Parameter

getButtonLayers

public java.util.List getButtonLayers()
Access the list of Button.Layer objects

Returns:
The buttonLayers value

getActions

public java.util.List getActions()
Access the list of Actions objects

Returns:
The actions value

addLayer

public Button.Layer addLayer(Symbol symbol,
                             Transform matrix,
                             AlphaTransform cxform,
                             int depth,
                             boolean usedForHitArea,
                             boolean usedForUp,
                             boolean usedForDown,
                             boolean usedForOver)
Add a layer to the button.

Parameters:
depth - should be >= 1 and there should only be one symbol on any layer
symbol - The feature to be added to the Layer attribute
matrix - The feature to be added to the Layer attribute
cxform - The feature to be added to the Layer attribute
usedForHitArea - The feature to be added to the Layer attribute
usedForUp - The feature to be added to the Layer attribute
usedForDown - The feature to be added to the Layer attribute
usedForOver - The feature to be added to the Layer attribute
Returns:
Description of the Return Value

addActions

public Actions addActions(int conditionFlags,
                          int flashVersion)
Adds a feature to the Actions attribute of the Button object

Parameters:
conditionFlags - The feature to be added to the Actions attribute
flashVersion - The feature to be added to the Actions attribute
Returns:
Description of the Return Value

defineSymbol

protected int defineSymbol(Movie movie,
                           SWFTagTypes timelineWriter,
                           SWFTagTypes definitionWriter)
                    throws java.io.IOException
Description of the Method

Specified by:
defineSymbol in class Symbol
Parameters:
movie - Description of the Parameter
timelineWriter - Description of the Parameter
definitionWriter - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception