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.
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
_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.
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 transitiontime_interval
- t the time interval over which this transition occurstrajectory
- j the trajectory over which this transition is mapped
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 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 sends the transition_step message to the
interactor.
- 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 interactor.
- 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- Overrides:
- end in class transition