use of org.cytoscape.view.vizmap.events.SetCurrentVisualStyleEvent in project cytoscape-impl by cytoscape.
the class VisualMappingManagerImpl method setCurrentVisualStyle.
@Override
public void setCurrentVisualStyle(VisualStyle newStyle) {
if (newStyle == null)
newStyle = defaultStyle;
boolean changed = !newStyle.equals(currentStyle);
this.currentStyle = newStyle;
if (changed) {
final CyEventHelper eventHelper = serviceRegistrar.getService(CyEventHelper.class);
eventHelper.fireEvent(new SetCurrentVisualStyleEvent(this, currentStyle));
}
}
Aggregations