Java Reference
In-Depth Information
Certain connection routers accept routing constraints (typically a list of
BendPoint
s). Install a
BendpointEditPolicy
using the
CONNECTION_BEND-
POINTS_ROLE
for editing the connections routing constraints. This
EditPolicy
requires a router that take
s a list
of
BendPoints
. During selection, the policy
adds normal handles to existing bendpoints on the connection. It adds smaller
handles where the user can create new bendpoints.
Each handle provides a
ConnectionBendpointTracker
. This tool sends a
BendpointRequest
back to the connection
EditPart
to show feedback and
obtain the command to perform the bend. For existing bendpoints, the request is
typed as
REQ_MOVE_BENDPOINT
; otherwise, it is
REQ_CREATE_BENDPOINT
. The
EditPolicy
must determine when moving a bendpoint back to its natural
placement should result in its removal.
In this chapter, we took a closer look at the GEF. As it's an underlying compo-
nent of the GMF, it's important to understand how it works and how they work
together, particularly when you start adding customizations to your domain-spe-
cific diagrams.
Search WWH ::
Custom Search