sub_arctic.anim
Class timer_transition
java.lang.Object
|
+--sub_arctic.anim.transition
|
+--sub_arctic.anim.timer_transition
- public class timer_transition
- extends transition
This is a subclass of transition which just generates a "pulse" to
an object which an amount of time has elapsed. The object must
be an implementation of the interface "timer." If you wish to
cancel a timer before it goes off, you will need to use the
remove_transition() function on the animation agent.
Constructor Summary |
timer_transition(timer t,
long l)
Create a timer transition which is scheduled to go off in some
number of milliseconds. |
Method Summary |
void |
end(event e,
java.lang.Object user_info)
Send the end message to the timer that the time has expired. |
void |
start(event e,
java.lang.Object user_info)
Start a transition. |
void |
step(event e,
java.lang.Object user_info,
long current_time)
Perform a step... |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
timer_transition
public timer_transition(timer t,
long l)
- Create a timer transition which is scheduled to go off in some
number of milliseconds. This is a best effort system, so it may
be some arbitrary amount of time (but usually small) after this
time elapses before your timer gets notified.
- Parameters:
timer
- t the object to be notifiedlong
- l the number of milliseconds until the notification
start
public void start(event e,
java.lang.Object user_info)
- Start a transition. This type of transition ignores this call.
- Parameters:
event
- e the animation event that caused things to get goingObject
- user_info the object passed to the animation agent when
the animatable joined its focus set- Overrides:
- start in class transition
step
public void step(event e,
java.lang.Object user_info,
long current_time)
- Perform a step... This type of transition ignores this call.
- Parameters:
event
- e the animation event for this stepObject
- user_info the object passed to the animation agent when
the animatable joined its focus setlong
- current_time the time it is "now" for this time step- Overrides:
- step in class transition
end
public void end(event e,
java.lang.Object user_info)
- Send the end message to the timer that the time has expired.
- Parameters:
event
- e the animation event for this stepObject
- user_info the object passed to the animation agent when
the animatable joined its focus set (ignored)- Overrides:
- end in class transition