private void connect() { graph.addGraphListener(graphListener); for (GraphItem item : items()) { graphListener.itemAdded(graph, item); } }