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
-
RaceView(Animator)
- Initialize a new RaceView
-
move(long)
- Move the race along in time
-
preferredSize()
- Give the size our view will want to be
RaceView
public RaceView(Animator animator)
- Initialize a new RaceView
- Parameters:
- animator - He who animates us. We provide him with drawables.
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
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