Java Reference
In-Depth Information
Element
Property
Value
Label
Name
Plus
Text
+
Node
Name
CollapsedSubprocess
Figure
Figure Descriptor
CollapsedNamedRoundedRectangle
We need to point out a few things in this graphical definition. First, a Figure
Ref element points to the ExpandBox figure at the root of the Figure
Gallery . The reason for this reference is that we will likely create additional
subprocess figure elements to include decorations for additional types, thereby
allowing reuse of this figure. Note that the plus symbol (+) itself for the box is
an ordinary Label element, not a polyline. Using text elements such as this is not
always a good idea because diagram scaling might not work as desired. Its use
here is illustrative.
Also note the use of layout elements to achieve a text area on top with the
ExpandBox figure centered at the bottom of the Subprocess node. A combina-
tion of Grid, Border, and Stack layouts is used.
TIP
When working with complex figures, it's helpful to add a line border or fill
to see how layout and placement work. See Section 9.1.3, “Painting,” for
information on how GEF figures are composed.
Gateways
The Gateway item is a simple diamond but is decorated by an internal figure
depending on the type: exclusive, inclusive, or parallel. The exclusive gateway
has no decoration, and the specification has variants we don't implement here.
The inclusive gateway has a heavy-lined inner circle figure, and the parallel gate-
way has a “plus” sign at its center, as seen in Figure 4-29. Table 4-22 defines each
figure, as well as an image of the exclusive, inclusive, and parallel gateway fig-
ures (from left to right).
 
Search WWH ::




Custom Search