|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--AnimatedObject
Object that knows how to animate itself, but not paint itself.
| Field Summary | |
private java.util.Vector |
myBehaviors
|
| Constructor Summary | |
AnimatedObject()
Create an inanimate object :) |
|
| Method Summary | |
void |
addBehavior(Behavior toAdd)
Start given behavior by adding it to object. |
void |
animate()
Animate by applying all behaviors. |
void |
clear()
Effectively stop object by removing all behaviors. |
void |
removeBehavior(Behavior toRemove)
Stop given behavior by removing from object. |
| Methods inherited from class java.lang.Object |
|
| Methods inherited from interface Paintable |
paint |
| Field Detail |
private java.util.Vector myBehaviors
| Constructor Detail |
public AnimatedObject()
| Method Detail |
public void addBehavior(Behavior toAdd)
public void removeBehavior(Behavior toRemove)
public void clear()
public void animate()
animate in interface Animatable
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||