Class jovial.slotCar.animator.Animatee
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jovial.slotCar.animator.Animatee

java.lang.Object
   |
   +----jovial.slotCar.animator.Animatee

public class Animatee
extends Object
A class representing something being animated. This class is responsible for providing its Animator with a list of drawables, and for causing the action to "happen". Animator tells its Animatee that time has passed, which should result in the positions of its drawables moving. It then asks all of the drawables to draw themselves.

Constructor Index

 o Animatee()

Method Index

 o move(long)
Cause the scene being animated to move ahead in time by deltaT milliseconds.
 o preferredSize()
Give the size our view will want to be

Constructors

 o Animatee
  public Animatee()

Methods

 o move
  public abstract void move(long deltaT)
Cause the scene being animated to move ahead in time by deltaT milliseconds. This should *not* cause any re-display... Animator will ask its drawables to re-draw themselves for that.
Parameters:
deltaT - Amount of time that has passed, in milliseconds
 o preferredSize
  public abstract Dimension preferredSize()
Give the size our view will want to be
Returns:
Dimension The size, in pixels

All Packages  Class Hierarchy  This Package  Previous  Next  Index