Java Reference
In-Depth Information
An
Edge
contains a list of
Bendpoint
and source/target
Anchor
s. It also
maintains a reference to its source and target
View
element. Note that
Bendpoint
and
LayoutConstraint
are designed with GEF's preference for
relative coordinates in mind.
Diagram element appearance properties are handled by a number of Style
model elements, as shown in Figure 10-22.
Figure 10-22
Notation styles
The
Style
interface provides an abstraction for appearance properties
and has implementations in
FontStyle
,
LineStyle
,
RoutingStyle
,
CanonicalStyle
,
DrawerStyle
,
ImageStyle
,
FillStyle
, and so on.
Style
s are owned by the
View
and store properties used to display the shape
and persist this information. One of the design considerations for the notation
model was team collaboration. Separating styles into granular properties makes
conflict merging easier to deal with when multiple modifications to the same
resource occur. Additionally,
Style
s allow for flexibility as an extension-point
for domain-specific properties and support the possibility of adding new
Style
s
in future versions of the notation model.
Search WWH ::
Custom Search