Java Reference
In-Depth Information
9.2.6 Interactions
NOTE
The content in this section is largely copied directly from the GEF pro-
grammer's guide and is provided here for convenience.
This section discusses the various types of interactions that are included in the
framework and which parts of the framework are involved in supporting the
interaction. An interaction can be anything that affects the model or the UI state.
Many interactions are graphical, but some are not. An interaction can include the
following:
Invoking some action (usually displayed on the toolbar, menu bar, or
pop-up)
❍
Clicking on something
❍
Clicking and dragging something
❍
Hovering over something (pausing the mouse for a certain time)
❍
Dropping something dragged from another source (native drag-and-drop)
❍
Pressing certain keys
❍
This section discusses the participants involved in each interaction and what
they do. This can include the following:
Tools that process input
❍
Actions that are
invoked
❍
The IDs and instances
of requests that b
y tools or actions send to
EditPart
s; IDs are defined on the
RequestConstants
class
❍
The
EditPolicy
roles designated to handle specific types of requests—
these are just constants defined on the
EditPolicy
interface
❍
Any
EditPolicy
implementations provided in GEF for use with the
interaction
❍
Selection
Table 9-2 details the elements involved in selection interactions.
Search WWH ::
Custom Search