|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.cmu.sun.animation.ScheduledAnimation
public abstract class ScheduledAnimation
An abstract class representing an animation action. The animation can be scheduled to take place at a specific time, and last for a specified duration. Additionally, this class is compariable against it's start Time.
| Field Summary | |
|---|---|
(package private) int |
duration
|
(package private) int |
startTime
|
(package private) Component3D |
target
|
| Constructor Summary | |
|---|---|
ScheduledAnimation(Component3D target,
int startTime,
int duration)
Create a new ScheduledAnimation. |
|
| Method Summary | |
|---|---|
int |
compareTo(ScheduledAnimation sa)
Used to sort ScheduledAnimation objects by their start time. |
abstract void |
doAnimation()
Performs the animation required for this ScheduledAnimation. |
long |
getEndTime()
The time the animation will be done. |
int |
getStartTime()
The time, in msec from the start, this animation is to be performed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Component3D target
int startTime
int duration
| Constructor Detail |
|---|
public ScheduledAnimation(Component3D target,
int startTime,
int duration)
target - Component to be animated.startTime - Start time, in msec for this animation.duration - The duration, in msec, for this animation.| Method Detail |
|---|
public int getStartTime()
public abstract void doAnimation()
public int compareTo(ScheduledAnimation sa)
compareTo in interface java.lang.Comparable<ScheduledAnimation>sa -
public long getEndTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||