use of org.cytoscape.view.vizmap.gui.internal.view.legend.LegendDialog in project cytoscape-impl by cytoscape.
the class CreateLegendTask method run.
@Override
public void run(final TaskMonitor monitor) throws Exception {
// Should be executed in EDT!
invokeOnEDT(() -> {
final VisualMappingManager vmMgr = servicesUtil.get(VisualMappingManager.class);
final VisualStyle selectedStyle = vmMgr.getCurrentVisualStyle();
final LegendDialog ld = new LegendDialog(selectedStyle, servicesUtil);
ld.showDialog(null);
});
}
Aggregations