de.esw.eengine.core
Class Viewport
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Viewport
public Viewport(int width,
int height)
- Parameters:
width - Width of this Viewportheight - Height of this Viewport
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 movey - Y offset to move
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- See Also:
Object.toString()