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);
}