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

Class jovial.slotCar.RaceView

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

public class RaceView
extends Animatee
A class representing a view of a slot-car race. This class creates a slot-car race and sets it in motion..
See Also:
Animatee, Animator

Constructor Index

 o RaceView(Animator)
Initialize a new RaceView

Method Index

 o move(long)
Move the race along in time
 o preferredSize()
Give the size our view will want to be

Constructors

 o RaceView
  public RaceView(Animator animator)
Initialize a new RaceView
Parameters:
animator - He who animates us. We provide him with drawables.

Methods

 o move
  public void move(long deltaT)
Move the race along in time
Parameters:
deltaT - Time since last call, in milliseconds
Overrides:
move in class Animatee
 o preferredSize
  public Dimension preferredSize()
Give the size our view will want to be
Returns:
Dimension The size, in pixels
Overrides:
preferredSize in class Animatee

All Packages  Class Hierarchy  This Package  Previous  Next  Index