// Rendering support
public void updateCollapseChanges(
Collection<CollapseData> created,
Collection<CollapseData> removed) {
CollapsePlugin collapsePlugin =
glPanel.getRenderingPipe().getCollapsePlugin();
for (CollapseData data : created) {
// collapse each child under the parent
for (GraphNode child : data.getChildrenNodes()) {
collapsePlugin.collapseUnder(
glPanel.node2property(child),
glPanel.node2property(data.getMasterNode()));
}
}
for (CollapseData data : removed) {
// uncollapse every children
for (GraphNode child : data.getChildrenNodes()) {
collapsePlugin.unCollapse(
glPanel.node2property(child),
glPanel.node2property(data.getMasterNode()));
}
}
}