org.deken.game.animation.imageFx
Class FlipImage
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlipImage
public FlipImage(FlipImage.FLIP flip)
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)