pt.tumba.parser.swf
Class Rect

java.lang.Object
  extended by pt.tumba.parser.swf.Rect

public class Rect
extends java.lang.Object

A SWF Rectangle structure

Author:
unknown

Field Summary
protected  int bitSize
          Description of the Field
protected  int maxX
          Description of the Field
protected  int maxY
          Description of the Field
protected  int minX
          Description of the Field
protected  int minY
          Description of the Field
 
Constructor Summary
Rect()
          Constructor for the Rect object
Rect(InStream in)
          Constructor for the Rect object
Rect(int minX, int minY, int maxX, int maxY)
          Constructor for the Rect object
 
Method Summary
protected  int getBitSize()
          Calculate the minimum bit size based on the current values
 long getLength()
          Gets the length attribute of the Rect object
 int getMaxX()
          Gets the maxX attribute of the Rect object
 int getMaxY()
          Gets the maxY attribute of the Rect object
 int getMinX()
          Gets the minX attribute of the Rect object
 int getMinY()
          Gets the minY attribute of the Rect object
 void setMaxX(int maxX)
          Sets the maxX attribute of the Rect object
 void setMaxY(int maxY)
          Sets the maxY attribute of the Rect object
 void setMinX(int minX)
          Sets the minX attribute of the Rect object
 void setMinY(int minY)
          Sets the minY attribute of the Rect object
 java.lang.String toString()
          Description of the Method
 void write(OutStream out)
          Write the rect contents to the output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bitSize

protected int bitSize
Description of the Field


minX

protected int minX
Description of the Field


minY

protected int minY
Description of the Field


maxX

protected int maxX
Description of the Field


maxY

protected int maxY
Description of the Field

Constructor Detail

Rect

public Rect(int minX,
            int minY,
            int maxX,
            int maxY)
Constructor for the Rect object

Parameters:
minX - Description of the Parameter
minY - Description of the Parameter
maxX - Description of the Parameter
maxY - Description of the Parameter

Rect

public Rect(InStream in)
     throws java.io.IOException
Constructor for the Rect object

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

Rect

public Rect()
Constructor for the Rect object

Method Detail

getMinX

public int getMinX()
Gets the minX attribute of the Rect object

Returns:
The minX value

getMinY

public int getMinY()
Gets the minY attribute of the Rect object

Returns:
The minY value

getMaxX

public int getMaxX()
Gets the maxX attribute of the Rect object

Returns:
The maxX value

getMaxY

public int getMaxY()
Gets the maxY attribute of the Rect object

Returns:
The maxY value

setMinX

public void setMinX(int minX)
Sets the minX attribute of the Rect object

Parameters:
minX - The new minX value

setMinY

public void setMinY(int minY)
Sets the minY attribute of the Rect object

Parameters:
minY - The new minY value

setMaxX

public void setMaxX(int maxX)
Sets the maxX attribute of the Rect object

Parameters:
maxX - The new maxX value

setMaxY

public void setMaxY(int maxY)
Sets the maxY attribute of the Rect object

Parameters:
maxY - The new maxY value

getBitSize

protected int getBitSize()
Calculate the minimum bit size based on the current values

Returns:
The bitSize value

getLength

public long getLength()
Gets the length attribute of the Rect object

Returns:
The length value

write

public void write(OutStream out)
           throws java.io.IOException
Write the rect contents to the output stream

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