sub_arctic.input
Interface pressable
- All Known Implementing Classes:
- button, GrowDragContainer, multi_button, h_slider, drag_container, text_edit, toggle, semantic_lens, h_range_slider, press_label, palette_button, menu_button, tab_parent, oneline_text_edit, v_slider, simple_grow_container, listbox, v_range_slider, menubar, multi_button, toggle, button, v_slider, historical_whiteboard, circ_lens, line_parent, shade, popup_parent, editor
- public abstract interface pressable
- extends input_protocol
Input protocol interface for objects which wish to receive single mouse
button down (press) and up (release) events. This input protocol is
managed by the click_agent. See click_agent for a discussion of the
interaction between this protocol, click, and double-click.
- See Also:
click_agent
Method Summary |
boolean |
press(event evt,
java.lang.Object user_info)
Dispatch mouse button press input to the object. |
boolean |
release(event evt,
java.lang.Object user_info)
Dispatch mouse button release input to the object. |
press
public boolean press(event evt,
java.lang.Object user_info)
- Dispatch mouse button press input to the object.
- Parameters:
event
- evt the event for the press.Object
- user_info the user information that was associated with
the pick used to dispatch this input to this
object.- Returns:
- boolean indicating if the event was consumed.
release
public boolean release(event evt,
java.lang.Object user_info)
- Dispatch mouse button release input to the object.
- Parameters:
event
- evt the event for the release.Object
- user_info the user information that was associated with
the pick used to dispatch this input to this
object.- Returns:
- boolean indicating if the event was consumed.