org.deken.game.animation.imageFx
Class RotateImage
java.lang.Object
org.deken.game.animation.imageFx.RotateImage
- All Implemented Interfaces:
- ImageEffect
public class RotateImage
- extends java.lang.Object
- implements ImageEffect
Title: RotateImage
Description: Rotates the image around its center.
Copyright: Copyright (c) Sep 3, 2011
- Version:
- 1.0
- Author:
- Gary Deken
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotateImage
public RotateImage(int angle)
draw
public void draw(java.awt.Graphics2D graphics,
java.awt.Image image,
int x,
int y)
- Specified by:
draw
in interface ImageEffect
- Parameters:
graphics
- image
- x
- y
-
initialize
public void initialize(Animation animation)
- Specified by:
initialize
in interface ImageEffect
getAngle
public int getAngle()
setAngle
public void setAngle(int angle)