Java Reference
In-Depth Information
Figure 10-29
DecorationService
More specifically, the provider service enables implementors to do the
following:
A provider of the DecorationService can add an adornment to any dia-
gram element.
The decoration is typically an image but can be any sort of graphics object
or figure. A provider of the decoration service is not restricted to any specific
graphic type.
The provider can specify any of the following enumerated locations for a
decoration on a shape, label, or list compartment item: center, north, northeast,
northwest, south, southeast, southwest, east, or west. For a connector, the per-
centage of the distance from the source end of the connector provides a location
for the decoration.
The decoration can be any size that fits within the shape or connector
boundary.
The decoration is justified according to its position on the shape. For exam-
ple, northwest is left-justified with an offset from the top-left side of the shape,
and northeast is right-justified with an offset from the top-right side of the shape.
Search WWH ::




Custom Search