use of org.opennms.features.topology.app.internal.ManualLayoutAlgorithm in project opennms by OpenNMS.
the class LayoutHintComponent method graphChanged.
@Override
public void graphChanged(GraphContainer graphContainer) {
if (!(graphContainer.getLayoutAlgorithm() instanceof ManualLayoutAlgorithm)) {
LayoutEntity layoutEntity = layoutManager.loadLayout(graphContainer.getGraph());
if (layoutEntity != null) {
boolean isEqualLayout = layoutManager.isPersistedLayoutEqualToCurrentLayout(graphContainer.getGraph());
getCompositionRoot().setVisible(!isEqualLayout);
} else {
getCompositionRoot().setVisible(false);
}
} else {
getCompositionRoot().setVisible(false);
}
}
Aggregations