Search in sources :

Example 1 with LegendDialog

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);
    });
}
Also used : LegendDialog(org.cytoscape.view.vizmap.gui.internal.view.legend.LegendDialog) VisualMappingManager(org.cytoscape.view.vizmap.VisualMappingManager) VisualStyle(org.cytoscape.view.vizmap.VisualStyle)

Aggregations

VisualMappingManager (org.cytoscape.view.vizmap.VisualMappingManager)1 VisualStyle (org.cytoscape.view.vizmap.VisualStyle)1 LegendDialog (org.cytoscape.view.vizmap.gui.internal.view.legend.LegendDialog)1