|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.input.dispatch_agent | +--sub_arctic.anim.animation_agent
This is the dispatch agent which handles animation input events and dispatches them to interface objects via the animatable input protocol interface. Animation events are generated by a single instance of the anim_generator class that runs in its own thread.
Field Summary | |
protected java.util.Vector |
pending
This is one of the three queues for use with this agent. |
protected java.util.Vector |
running
This is one of the three queues for use with this agent. |
protected java.util.Vector |
unknown
This is one of the three queues for use with this agent. |
Constructor Summary | |
animation_agent()
Initialize this agent. |
Method Summary | |
boolean |
dispatch_event(event evt,
java.lang.Object user_info,
interactor to_obj,
int seq_num)
Handle an animation event. |
boolean |
event_is_useful(event evt)
Is this event one we care about (an ANIMATION_EVENT)? |
protected void |
insert_into_pending(transition t)
This method puts a new transition in the pending list. |
void |
remove_transition(transition target)
This function causes the animation agent to terminate a transition. |
void |
schedule_transition(transition t)
Schedule a transition on behalf of some interactor. This is the principal API for user level code to use to schedule animations. |
Methods inherited from class sub_arctic.input.dispatch_agent |
after_dispatch_notify,
dispatch_unused_event |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.util.Vector unknown
protected java.util.Vector pending
protected java.util.Vector running
Constructor Detail |
public animation_agent()
Method Detail |
public boolean dispatch_event(event evt, java.lang.Object user_info, interactor to_obj, int seq_num)
event
- evt the event to dispatchObject
- user_info the user information passed to the agent when the
user object joined the focus setinteractor
- to_obj the object to dispatch toint
- seq_num the sequence number of this eventpublic boolean event_is_useful(event evt)
event
- evt the event to testpublic void schedule_transition(transition t)
This is the principal API for user level code to use to schedule animations. You should pass the transition to this function and the agent will set things up for you.
transition
- t the transition you want executed (this contains a
reference to the animatable object in the transition)protected void insert_into_pending(transition t)
transition
- t the transition to insertpublic void remove_transition(transition target)
transition
- target the transition you want removed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |