sdljava.video
Class SDLRect

java.lang.Object
  extended by sdljava.video.SDLRect

public class SDLRect
extends java.lang.Object

Describe class SDLRect here.

Version:
$Id: SDLRect.java,v 1.3 2005/01/19 03:09:14 ivan_ganza Exp $
Author:
Ivan Z. Ganza

Field Summary
 int height
           
 int width
           
 int x
           
 int y
           
 
Constructor Summary
SDLRect()
           
SDLRect(int x, int y)
           
SDLRect(int x, int y, int width, int height)
           
 
Method Summary
 int getHeight()
          Gets the value of height
 int getWidth()
          Gets the value of width
 int getX()
          Gets the value of x
 int getY()
          Gets the value of y
 void setHeight(int argHeight)
          Sets the value of height
 void setLocation(int x, int y)
           
 void setSize(int width, int height)
           
 void setWidth(int argWidth)
          Sets the value of width
 void setX(int argX)
          Sets the value of x
 void setY(int argY)
          Sets the value of y
 java.lang.String toString()
          Return a string represenation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x

y

public int y

width

public int width

height

public int height
Constructor Detail

SDLRect

public SDLRect()

SDLRect

public SDLRect(int x,
               int y)

SDLRect

public SDLRect(int x,
               int y,
               int width,
               int height)
Method Detail

getX

public int getX()
Gets the value of x

Returns:
the value of x

setX

public void setX(int argX)
Sets the value of x

Parameters:
argX - Value to assign to this.x

getY

public int getY()
Gets the value of y

Returns:
the value of y

setY

public void setY(int argY)
Sets the value of y

Parameters:
argY - Value to assign to this.y

getWidth

public int getWidth()
Gets the value of width

Returns:
the value of width

setWidth

public void setWidth(int argWidth)
Sets the value of width

Parameters:
argWidth - Value to assign to this.width

getHeight

public int getHeight()
Gets the value of height

Returns:
the value of height

setHeight

public void setHeight(int argHeight)
Sets the value of height

Parameters:
argHeight - Value to assign to this.height

setLocation

public void setLocation(int x,
                        int y)

setSize

public void setSize(int width,
                    int height)

toString

public java.lang.String toString()
Return a string represenation of this object

Overrides:
toString in class java.lang.Object
Returns:
a String represenation of this object