|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.anim.transition
Class that implements the transitions, just like in the paper (Hudson & Stasko, UIST '93) and in artkit.
Field Summary | |
protected boolean |
_finished
This lets the world know that we have seen a time that is larger than our end. |
protected time_interval |
_interval
Time interval we are going on. |
protected double |
_last_time
Store the last time seen. |
protected animatable |
_target
Interactor we are operating on. |
protected trajectory |
_traj
The trajectory we are using. |
Constructor Summary | |
transition(animatable i,
time_interval t,
trajectory j)
Build a transition, given a target animatable, a time interval, and a trajectory. |
Method Summary | |
void |
end(event e,
java.lang.Object user_info)
Send the end message to the interactor. |
boolean |
finished()
Are we done? (Has time passed us by...). |
time_interval |
interval()
Retrieve the time interval over which we are operating. |
double |
last_time()
What was the last time seen? This function is usually used by code trying to figure out what time interval is "next". |
void |
set_interval(time_interval t)
This function sets the time interval for this transition. |
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... |
animatable |
target()
Retrieve the interactor we are operating on. |
trajectory |
traj()
Retrieve the trajectory for this object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected animatable _target
protected time_interval _interval
protected trajectory _traj
protected boolean _finished
protected double _last_time
Constructor Detail |
public transition(animatable i, time_interval t, trajectory j)
animatable
- i the target of the animation or transitiontime_interval
- t the time interval over which this transition occurstrajectory
- t the trajectory over which this transition is mappedMethod Detail |
public animatable target()
public time_interval interval()
public void set_interval(time_interval t)
This function has been made protected so subclasses of transition can use it, but in general user level code cannot.
time_interval
- t the new time interval to use for this transitionpublic trajectory traj()
public boolean finished()
public double last_time()
public void start(event e, java.lang.Object user_info)
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 setpublic void step(event e, java.lang.Object user_info, long current_time)
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 steppublic void end(event e, java.lang.Object user_info)
event
- e the animation event for this stepObject
- user_info the object passed to the animation agent when
the animatable joined its focus set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |