}
};
// Anytime we add a port to an entity, we want to layout all the
// ports within that entity.
GlobalLayout layout = new EntityLayout();
controller.addGraphViewListener(new IncrementalLayoutListener(
new IncrLayoutAdapter(layout) {
public void nodeDrawn(Object node) {
layout(node);
}