org.deken.game.animation.imageFx
Class FlipImage

java.lang.Object
  extended by org.deken.game.animation.imageFx.FlipImage
All Implemented Interfaces:
ImageEffect

public class FlipImage
extends java.lang.Object
implements ImageEffect

Title: FlipImage

Description: Flips the image in one of three directions, horizontal, vertical or both.

Copyright: Copyright (c) Sep 3, 2011

Version:
1.0
Author:
Gary Deken

Nested Class Summary
static class FlipImage.FLIP
           
 
Constructor Summary
FlipImage(FlipImage.FLIP flip)
           
 
Method Summary
 void draw(java.awt.Graphics2D graphics, java.awt.Image image, int x, int y)
           
 FlipImage.FLIP getFlip()
           
 int getHeight()
           
 int getWidth()
           
 void initialize(Animation animation)
           
 void setFlip(FlipImage.FLIP flip)
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlipImage

public FlipImage(FlipImage.FLIP flip)
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

getFlip

public FlipImage.FLIP getFlip()

getHeight

public int getHeight()

getWidth

public int getWidth()

setFlip

public void setFlip(FlipImage.FLIP flip)

setHeight

public void setHeight(int height)

setWidth

public void setWidth(int width)