* org.eclipse.draw2d.graph.Subgraph, java.util.Map)
*/
@SuppressWarnings("unchecked")
public void contributeNodesToGraph(CompoundDirectedGraph graph, Subgraph s,
Map map) {
Node n = new Node(this, s);
n.outgoingOffset = 9;
n.incomingOffset = 9;
n.width = getFigure().getPreferredSize().width + 5;
n.height = getFigure().getPreferredSize().height;
if (getModel() instanceof IEndState)
n.setPadding(new Insets(0, 40, 10, 40));
else if (getModel() instanceof IActionElement
|| getModel() instanceof IAttributeMapper
|| getModel() instanceof IIf
|| getModel() instanceof IExceptionHandler)
n.setPadding(new Insets(0, 5, 5, 0));
else
n.setPadding(new Insets(0, 50, 50, 50));
map.put(this, n);
graph.nodes.add(n);
}