org.deken.game.animation.imageFx
Class RotateImage

java.lang.Object
  extended by 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

Constructor Summary
RotateImage(int angle)
           
 
Method Summary
 void draw(java.awt.Graphics2D graphics, java.awt.Image image, int x, int y)
           
 int getAngle()
           
 void initialize(Animation animation)
           
 void setAngle(int angle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotateImage

public RotateImage(int angle)
Method Detail

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)