medusa.example
Class Animation
- java.lang.Object
-
- medusa.example.Animation
-
public class Animation extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description Animation()Creates a new instance of Animation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddShape(java.awt.Shape shape, long duration)java.awt.ShapegetShape()Get this animation's current shape.voidinitDefault()voidstart()voidupdate(long elapsedTime)Updates this animation's current shape (frame) if necessary
-
-
-
Method Detail
-
addShape
public void addShape(java.awt.Shape shape, long duration)
-
start
public void start()
-
update
public void update(long elapsedTime)
Updates this animation's current shape (frame) if necessary
-
getShape
public java.awt.Shape getShape()
Get this animation's current shape. Returns null if this animation has no shape
-
initDefault
public void initDefault()
-
-
DMelt 3.0 © DataMelt by jWork.ORG