Package cytoscape.task.ui

Examples of cytoscape.task.ui.JTaskConfig


    taskMonitor.setPercentCompleted(100);
  }
 
  public static CySBMLValidator getValidator(SBMLDocument document){
    CySBMLValidatorTask vTask = new CySBMLValidatorTask(document);
    JTaskConfig jTaskConfig = new JTaskConfig();
    jTaskConfig.setOwner(Cytoscape.getDesktop());
    jTaskConfig.displayCloseButton(false);
    jTaskConfig.displayCancelButton(false);
    jTaskConfig.displayStatus(true);
    jTaskConfig.setAutoDispose(true);
    TaskManager.executeTask(vTask, jTaskConfig);
    return vTask.getValidator();
  }
View Full Code Here


public class LoadBioModel {
  public static void loadBioModelById(String id){
    System.out.println("CySBML[INFO] -> Load BioModel: " + id);   
   
    LoadBioModelTask task = new LoadBioModelTask(id);
    JTaskConfig jTaskConfig = new JTaskConfig();
    jTaskConfig.setOwner(Cytoscape.getDesktop());
    jTaskConfig.displayCloseButton(false);
    jTaskConfig.displayCancelButton(false);
    jTaskConfig.displayStatus(true);
    jTaskConfig.setAutoDispose(true);
    TaskManager.executeTask(task, jTaskConfig);
  }
View Full Code Here

  }
 
  private List<String> searchModelIdsForSearchContent(SearchContent content){
       
    SearchBioModelTask task = new SearchBioModelTask(content, bmInterface);
    JTaskConfig jTaskConfig = new JTaskConfig();
    jTaskConfig.setOwner(Cytoscape.getDesktop());
    jTaskConfig.displayCloseButton(false);
    jTaskConfig.displayCancelButton(true);
    jTaskConfig.displayStatus(true);
    jTaskConfig.setAutoDispose(true);
    TaskManager.executeTask(task, jTaskConfig);
    return task.getIds();
  }
View Full Code Here

TOP

Related Classes of cytoscape.task.ui.JTaskConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.