de.esw.eengine.core
Class Viewport

java.lang.Object
  extended by de.esw.eengine.core.Viewport

public class Viewport
extends java.lang.Object

Since:
1.0
Version:
$Id: Viewport.java 81 2005-06-17 14:58:37Z markusw $
Author:
markusw

Constructor Summary
Viewport(int width, int height)
           
 
Method Summary
 int getX()
           
 int getY()
           
 void move(int x, int y)
           
 void setX(int x)
           
 void setY(int y)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Viewport

public Viewport(int width,
                int height)
Parameters:
width - Width of this Viewport
height - Height of this Viewport
Method Detail

getX

public final int getX()
Returns:
Returns the x.

setX

public final void setX(int x)
Parameters:
x - The x to set.

getY

public final int getY()
Returns:
Returns the y.

setY

public final void setY(int y)
Parameters:
y - The y to set.

move

public final void move(int x,
                       int y)
Parameters:
x - X offset to move
y - Y offset to move

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()