sub_arctic.anim
Interface animatable

All Known Implementing Classes:
sliding_text, anim_mover_container, shade

public abstract interface animatable
extends focusable

This is the input protocol interface for specifying that an object is animatable. Keep in mind that the object need not be an interactor, although this is usually the case. Objects other than interactors may need general purpose timing and this can be used for such a timing need.


Method Summary
 void end_transition(transition trans, trajectory traj, double start_t, java.lang.Object start_obj, double end_t, java.lang.Object end_obj, event e, java.lang.Object user_info)
          This is the last call for a transition and indicates that the animation transition is completed.
 void start_transition(transition trans, trajectory traj, double start_t, java.lang.Object start_obj, event e, java.lang.Object user_info)
          This gets called on your interactor when a transition gets started.
 void transition_step(transition trans, trajectory traj, double start_t, java.lang.Object start_obj, double end_t, java.lang.Object end_obj, event e, java.lang.Object user_info)
          This called on your object to deliver one step of the animation.
 
Methods inherited from interface sub_arctic.input.focusable
focus_set_enter, focus_set_exit
 

Method Detail

start_transition

public void start_transition(transition trans,
                             trajectory traj,
                             double start_t,
                             java.lang.Object start_obj,
                             event e,
                             java.lang.Object user_info)
This gets called on your interactor when a transition gets started. The start_obj is the result of passing the start time (0.0) through your pacing function and then through the trajectory. Generally, this results in a Point, but other objects are possible. The user_info object is the object you supplied at the time you set yourself into the animation focus set. This routine will be called for all transitions whose scheduled start time has past, even if there is not enough time to deliver any steps or if the end time has also passed.

Parameters:
transition - trans the transition being performed.
trajectory - traj the trajectory which is being used for this transition.
double - start_t the amount of time (in the range [0.0, 1.0)) which has already elapsed in this interval.
Object - start_obj the start time mapped through the trajectory
event - e the animation event causing this transition to be started
Object - user_info the object you supplied to the animation agent when you entered its focus set (by scheduling a transition)

transition_step

public void transition_step(transition trans,
                            trajectory traj,
                            double start_t,
                            java.lang.Object start_obj,
                            double end_t,
                            java.lang.Object end_obj,
                            event e,
                            java.lang.Object user_info)
This called on your object to deliver one step of the animation. As with start_transition(), the start_object and end_object are the result of passing the current time start and end time through your pacing function then through your trajectory. Note: start_transition() and end_transition() will always be called, but steps may not be delivered if there is not enough time.

Parameters:
transition - trans the transition being performed
trajectory - traj the trajectory which is being used for this transition
double - start_t the amount of time (in the range [0.0, 1.0)) at the beginning of this interval
Object - start_obj the start time mapped through the trajectory
double - end_t the amount of time (in the range [0.0, 1.0)) at the end of this interval
Object - end_obj the end time mapped through the trajectory
event - e the animation event causing this transition to be started
Object - user_info the object you supplied to the animation agent when you entered its focus set (by scheduling a transition)

end_transition

public void end_transition(transition trans,
                           trajectory traj,
                           double start_t,
                           java.lang.Object start_obj,
                           double end_t,
                           java.lang.Object end_obj,
                           event e,
                           java.lang.Object user_info)
This is the last call for a transition and indicates that the animation transition is completed. Like the transition_step it gives you the start and end objects based on your trajectory and pacing function. This will include the end of the time interval. This routine is always invoked (after a call to start_transition()) for transitions whose end time has passed, even if there was not enough time for any steps.

Parameters:
transition - trans the transition being performed
trajectory - traj the trajectory which is being used for this transition
double - start_t the amount of time (in the range [0.0, 1.0)) at the beginning of this interval
Object - start_obj the start time mapped through the trajectory
double - end_t the amount of time (1.0) at the end of this interval
Object - end_obj the end time mapped through the trajectory
event - e the animation event causing this transition to be started
Object - user_info the object you supplied to the animation agent when you entered its focus set (by scheduling a transition)