IBM® ILOG® Dojo Diagrammer is built on various Dojo modules,
the most important of which is dojox gfx. The dojox gfx module provides
the cross-browser graphic capabilities required to draw the basic
shapes of the nodes and links in a diagram.
The layer on top of this base level is the Dijit-based
Diagram widget. The Diagram widget can be populated through a Dojo
data store, such as a
dojo.data.ItemFileReadStore
.
In this case, the Diagram widget displays a graph representing the
relationships between the items of the data store. The graphical appearance
of the nodes and links in the graph can be fully customized through
the markup properties of the Diagram widget or through JavaScript
code.Nodes can be basic (for example, a rectangle with a label)
or more complex (for example, a UML object with a variable list of
attributes). A link can connect no more than two nodes. It is represented
as a polyline or as a more complex path with optional decorations,
such as an end arrow. The point where a link connects to a node is
defined by a connection object called an anchor.
Dojo Diagrammer provides a complete JavaScript API that
allows you to create and customize the nodes and links of your graphs.