sub_arctic.anim
Class simple_transition

java.lang.Object
  |
  +--sub_arctic.anim.transition
        |
        +--sub_arctic.anim.simple_transition

public class simple_transition
extends transition

This is a version of the transition object which knows how to talk to objects which are of type simple_animatable.


Field Summary
protected  simple_animatable _simple_target
          This is the object we are going to animate.
 
Fields inherited from class sub_arctic.anim.transition
_finished, _interval, _last_time, _target, _traj
 
Constructor Summary
simple_transition(simple_animatable i, time_interval t, trajectory j)
          Create a simple transition given a simple_animatable object, a time interval, and a trajectory.
 
Method Summary
 void end(event e, java.lang.Object user_info)
          Send the end message to the interactor.
 simple_animatable simple_target()
          The simple target of this transition is the simple_animatable object with whom we are communicating.
 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 sub_arctic.anim.transition
finished, interval, last_time, set_interval, target, traj
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_simple_target

protected simple_animatable _simple_target
This is the object we are going to animate. The "target" of this transition is null since we are not using the animatable interface.
Constructor Detail

simple_transition

public simple_transition(simple_animatable i,
                         time_interval t,
                         trajectory j)
Create a simple transition given a simple_animatable object, a time interval, and a trajectory.

Parameters:
simple_animatable - i the target of the animation or transition
time_interval - t the time interval over which this transition occurs
trajectory - j the trajectory over which this transition is mapped
Method Detail

simple_target

public simple_animatable simple_target()
The simple target of this transition is the simple_animatable object with whom we are communicating.

start

public void start(event e,
                  java.lang.Object user_info)
Start a transition. This is where the work gets done of calling the start_transition function on the interactor.
Parameters:
event - e the animation event that caused things to get going
Object - 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 sends the transition_step message to the interactor.

Parameters:
event - e the animation event for this step
Object - user_info the object passed to the animation agent when the animatable joined its focus set
long - 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 interactor.
Parameters:
event - e the animation event for this step
Object - user_info the object passed to the animation agent when the animatable joined its focus set
Overrides:
end in class transition