sub_arctic.input
Interface selectable


public abstract interface selectable
extends input_protocol

Input protocol interface for objects which can be put in a currently selected set (managed by the selection_agent).

See Also:
selection_agent_class

Method Summary
 boolean select(event evt, java.lang.Object user_info)
          Dispatch input indicating object has been selected.
 boolean unselect(event evt, java.lang.Object user_info)
          Dispatch input indicating object has been unselected.
 

Method Detail

select

public boolean select(event evt,
                      java.lang.Object user_info)
Dispatch input indicating object has been selected. If this routine returns false then the selection is considered to be rejected and the object is not added to the currently selected object set.
Parameters:
event - evt the event "causing" the selection.
Object - user_info the information associated with the pick causing the selection.
Returns:
boolean indicating whether the input was consumed.

unselect

public boolean unselect(event evt,
                        java.lang.Object user_info)
Dispatch input indicating object has been unselected. The object will be removed from the currently selected object set regardless of the return value from this routine.
Parameters:
event - evt the event "causing" the loss of selection.
Object - user_info the information associated with the pick causing the loss of selection.
Returns:
boolean indicating whether the input was consumed.