}
@Override
protected void contributeNodesToGraph(CompoundDirectedGraph graph, Subgraph s,
Map<AbstractGraphicalEditPart, Object> map) {
Node n = new Node(this, s);
n.setRowConstraint(getActivity().getSortIndex());
n.outgoingOffset = getAnchorOffset();
n.incomingOffset = getAnchorOffset();
Dimension hint = getFigureHint();
n.width = hint.width;
n.height = hint.height;
if (graph.getDirection() == PositionConstants.EAST) {
n.setPadding(new Insets(8, 10, 12, 10));
}
else {
n.setPadding(new Insets(10, 8, 10, 12));
}
map.put(this, n);
graph.nodes.add(n);
for (int i = 0; i < getSourceConnections().size(); i++) {