Search in sources :

Example 1 with ApplyEMStyleTask

use of org.baderlab.csplugins.enrichmentmap.task.ApplyEMStyleTask in project EnrichmentMapApp by BaderLab.

the class ControlPanelMediator method applyVisualStyle.

private void applyVisualStyle(EMStyleOptions options, CyCustomGraphics2<?> chart, boolean updateChartOnly) {
    ApplyEMStyleTask task = applyStyleTaskFactory.create(options, chart, updateChartOnly);
    dialogTaskManager.execute(new TaskIterator(task), new TaskObserver() {

        @Override
        public void taskFinished(ObservableTask task) {
        }

        @Override
        public void allFinished(FinishStatus finishStatus) {
            EMViewControlPanel viewPanel = getControlPanel().getViewControlPanel(options.getNetworkView());
            updateLegends(viewPanel);
        }
    });
}
Also used : TaskObserver(org.cytoscape.work.TaskObserver) ObservableTask(org.cytoscape.work.ObservableTask) EMViewControlPanel(org.baderlab.csplugins.enrichmentmap.view.control.ControlPanel.EMViewControlPanel) TaskIterator(org.cytoscape.work.TaskIterator) ApplyEMStyleTask(org.baderlab.csplugins.enrichmentmap.task.ApplyEMStyleTask) FinishStatus(org.cytoscape.work.FinishStatus)

Aggregations

ApplyEMStyleTask (org.baderlab.csplugins.enrichmentmap.task.ApplyEMStyleTask)1 EMViewControlPanel (org.baderlab.csplugins.enrichmentmap.view.control.ControlPanel.EMViewControlPanel)1 FinishStatus (org.cytoscape.work.FinishStatus)1 ObservableTask (org.cytoscape.work.ObservableTask)1 TaskIterator (org.cytoscape.work.TaskIterator)1 TaskObserver (org.cytoscape.work.TaskObserver)1