pt.tumba.parser.swf
Class ButtonRecord

java.lang.Object
  extended by pt.tumba.parser.swf.ButtonRecord
Direct Known Subclasses:
ButtonRecord2

public class ButtonRecord
extends java.lang.Object

Description of the Class

Author:
unknown

Field Summary
static int BUTTON_DOWN
          Description of the Field
static int BUTTON_HITTEST
          Description of the Field
static int BUTTON_OVER
          Description of the Field
static int BUTTON_UP
          Description of the Field
protected  int flags
          Description of the Field
protected  int id
          Description of the Field
protected  int layer
          Description of the Field
protected  Matrix matrix
          Description of the Field
 
Constructor Summary
protected ButtonRecord(InStream in, int firstByte)
          Constructor for the ButtonRecord object
  ButtonRecord(int id, int layer, Matrix matrix, int flags)
          Constructor for the ButtonRecord object
 
Method Summary
 int getCharId()
          Gets the charId attribute of the ButtonRecord object
 int getFlags()
          Gets the flags attribute of the ButtonRecord object
 int getLayer()
          Gets the layer attribute of the ButtonRecord object
 Matrix getMatrix()
          Gets the matrix attribute of the ButtonRecord object
 boolean isDown()
          Gets the down attribute of the ButtonRecord object
 boolean isHitTest()
          Gets the hitTest attribute of the ButtonRecord object
 boolean isOver()
          Gets the over attribute of the ButtonRecord object
 boolean isUp()
          Gets the up attribute of the ButtonRecord object
static java.util.List read(InStream in)
          Read a button record array
 void setCharId(int id)
          Sets the charId attribute of the ButtonRecord object
 void setFlags(int flags)
          Sets the flags attribute of the ButtonRecord object
 void setLayer(int layer)
          Sets the layer attribute of the ButtonRecord object
 void setMatrix(Matrix matrix)
          Sets the matrix attribute of the ButtonRecord 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUTTON_HITTEST

public static final int BUTTON_HITTEST
Description of the Field

See Also:
Constant Field Values

BUTTON_DOWN

public static final int BUTTON_DOWN
Description of the Field

See Also:
Constant Field Values

BUTTON_OVER

public static final int BUTTON_OVER
Description of the Field

See Also:
Constant Field Values

BUTTON_UP

public static final int BUTTON_UP
Description of the Field

See Also:
Constant Field Values

flags

protected int flags
Description of the Field


id

protected int id
Description of the Field


layer

protected int layer
Description of the Field


matrix

protected Matrix matrix
Description of the Field

Constructor Detail

ButtonRecord

public ButtonRecord(int id,
                    int layer,
                    Matrix matrix,
                    int flags)
Constructor for the ButtonRecord object

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

ButtonRecord

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

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

getCharId

public int getCharId()
Gets the charId attribute of the ButtonRecord object

Returns:
The charId value

getLayer

public int getLayer()
Gets the layer attribute of the ButtonRecord object

Returns:
The layer value

getMatrix

public Matrix getMatrix()
Gets the matrix attribute of the ButtonRecord object

Returns:
The matrix value

getFlags

public int getFlags()
Gets the flags attribute of the ButtonRecord object

Returns:
The flags value

isHitTest

public boolean isHitTest()
Gets the hitTest attribute of the ButtonRecord object

Returns:
The hitTest value

isDown

public boolean isDown()
Gets the down attribute of the ButtonRecord object

Returns:
The down value

isOver

public boolean isOver()
Gets the over attribute of the ButtonRecord object

Returns:
The over value

isUp

public boolean isUp()
Gets the up attribute of the ButtonRecord object

Returns:
The up value

setCharId

public void setCharId(int id)
Sets the charId attribute of the ButtonRecord object

Parameters:
id - The new charId value

setLayer

public void setLayer(int layer)
Sets the layer attribute of the ButtonRecord object

Parameters:
layer - The new layer value

setMatrix

public void setMatrix(Matrix matrix)
Sets the matrix attribute of the ButtonRecord object

Parameters:
matrix - The new matrix value

setFlags

public void setFlags(int flags)
Sets the flags attribute of the ButtonRecord object

Parameters:
flags - The new flags 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

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 java.lang.Object
Returns:
Description of the Return Value