sub_arctic.input
Class inout_press_drag_agent

java.lang.Object
  |
  +--sub_arctic.input.dispatch_agent
        |
        +--sub_arctic.input.inout_press_drag_agent

public class inout_press_drag_agent
extends dispatch_agent

This class implements an agent which is a hybrid positional/focus agent. It basically accepts a positional press over a properly typed object (an interactor which implements inout_press_draggable) and hands it off to (i.e., makes it the focus of) the inout_drag agent.

See Also:
pressable, inout_draggable, inout_drag_focus_agent

Constructor Summary
inout_press_drag_agent()
          Simple constructor
 
Method Summary
 boolean dispatch_event(event evt, java.lang.Object user_info, interactor to_obj, int seq_num)
          Attempt to perform event dispatch to the given object.
 boolean event_is_useful(event evt)
          Indicate that we are only interested in press of the mouse button.
 
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
 

Constructor Detail

inout_press_drag_agent

public inout_press_drag_agent()
Simple constructor
Method Detail

event_is_useful

public boolean event_is_useful(event evt)
Indicate that we are only interested in press of the mouse button.
Parameters:
event - evt the event we are expressing interest or non-interest in.
Returns:
boolean indicating whether we want the event.
Overrides:
event_is_useful in class dispatch_agent

dispatch_event

public boolean dispatch_event(event evt,
                              java.lang.Object user_info,
                              interactor to_obj,
                              int seq_num)
Attempt to perform event dispatch to the given object. If the object is inout_press_draggable, then we make it the inout_drag focus and we are done.
Parameters:
event - evt the event being dispatched.
Object - user_info ignored (since this is a focus policy).
interactor - to_obj ignored (since this is a focus policy).
int - seq_num ignored (since this is a focus policy).
Returns:
boolean indicating whether the input was dispatched and consumed.
Overrides:
dispatch_event in class dispatch_agent