public void actionPerformed(ActionEvent e) {
if (isAtLeastOneNodeExpanded()) {
NodeExpansionMemento oldState = graph.getNodeExpansionMemento();
graph.getLayout().collapseAll();
NodeExpansionMemento newState = graph.getNodeExpansionMemento();
fireLayoutChanged(new NodeExpansionEdit(oldState, newState));
}
}