Java Reference
In-Depth Information
private void
createContents() {
Ellipse circle0 =
new
Ellipse(){
@Override
protected void
outlineShape(Graphics graphics) {
super
.outlineShape(graphics);
Rectangle inner = Rectangle.SINGLETON;
inner.width = getBounds().width - 5;
inner.height = getBounds().height - 5;
inner.x = getBounds().x + 2;
inner.y = getBounds().y + 2;
graphics.drawOval(inner);
}
};
this
.add(circle0);
}
Figure 4-36 shows an example of our Scenario diagram to this point.
Figure 4-36
Scenario diagram
4.5.5 Generating the Figures Plug-In
We must generate a standalone figures plug-in for use in our diagram. As men-
tioned earlier, this is the preferred way to develop GMF diagrams, but it comes
at the expense of a slightly complicated workflow. Begin by right-clicking on the
bpmn.gmfgraph
model and select
Generate Figures Plug-In
. Specify the name
org.eclipse.bpmn.figures
for the plug-in name and select the
Use
IMapMode
and
Utilize Enhanced Features of GMF Runtime
options before
clicking
Finish
, as seen in Figure 4-37.
Search WWH ::
Custom Search