pt.tumba.parser.swf
Class ButtonRecord2

java.lang.Object
  extended by pt.tumba.parser.swf.ButtonRecord
      extended by pt.tumba.parser.swf.ButtonRecord2

public class ButtonRecord2
extends ButtonRecord

Description of the Class

Author:
unknown

Field Summary
protected  AlphaTransform transform
          Description of the Field
 
Fields inherited from class pt.tumba.parser.swf.ButtonRecord
BUTTON_DOWN, BUTTON_HITTEST, BUTTON_OVER, BUTTON_UP, flags, id, layer, matrix
 
Constructor Summary
protected ButtonRecord2(InStream in, int firstByte)
          Constructor for the ButtonRecord2 object
  ButtonRecord2(int id, int layer, Matrix matrix, AlphaTransform transform, int flags)
          Constructor for the ButtonRecord2 object
 
Method Summary
 AlphaTransform getTransform()
          Gets the transform attribute of the ButtonRecord2 object
static java.util.List read(InStream in)
          Read a button record array
 void setTransform(AlphaTransform transform)
          Sets the transform attribute of the ButtonRecord2 object
 java.lang.String toString()
          Description of the Method
protected  void write(OutStream out)
          Description of the Method
static void write(OutStream out, java.util.List records)
          Write a button record array
 
Methods inherited from class pt.tumba.parser.swf.ButtonRecord
getCharId, getFlags, getLayer, getMatrix, isDown, isHitTest, isOver, isUp, setCharId, setFlags, setLayer, setMatrix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transform

protected AlphaTransform transform
Description of the Field

Constructor Detail

ButtonRecord2

public ButtonRecord2(int id,
                     int layer,
                     Matrix matrix,
                     AlphaTransform transform,
                     int flags)
Constructor for the ButtonRecord2 object

Parameters:
id - Description of the Parameter
layer - Description of the Parameter
matrix - Description of the Parameter
transform - Description of the Parameter
flags - Description of the Parameter

ButtonRecord2

protected ButtonRecord2(InStream in,
                        int firstByte)
                 throws java.io.IOException
Constructor for the ButtonRecord2 object

Parameters:
in - Description of the Parameter
firstByte - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception
Method Detail

getTransform

public AlphaTransform getTransform()
Gets the transform attribute of the ButtonRecord2 object

Returns:
The transform value

setTransform

public void setTransform(AlphaTransform transform)
Sets the transform attribute of the ButtonRecord2 object

Parameters:
transform - The new transform value

read

public static java.util.List read(InStream in)
                           throws java.io.IOException
Read a button record array

Parameters:
in - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

write

public static void write(OutStream out,
                         java.util.List records)
                  throws java.io.IOException
Write a button record array

Parameters:
out - Description of the Parameter
records - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

write

protected void write(OutStream out)
              throws java.io.IOException
Description of the Method

Overrides:
write in class ButtonRecord
Parameters:
out - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class ButtonRecord
Returns:
Description of the Return Value