use of org.cytoscape.property.CyProperty in project clusterMaker2 by RBVI.
the class TreeView method startup.
protected void startup() {
CyProperty cyProperty = manager.getService(CyProperty.class, "(cyPropertyName=cytoscape3.props)");
// Get our data model
dataModel = new TreeViewModel(monitor, myNetwork, myView, manager);
// Set up the global config
setConfigDefaults(new PropertyConfig(cyProperty, globalConfigName(), "ProgramConfig"));
// Set up our configuration
PropertyConfig documentConfig = new PropertyConfig(cyProperty, getShortName(), "DocumentConfig");
dataModel.setDocumentConfig(documentConfig);
// Create our view frame
TreeViewFrame frame = new TreeViewFrame(this, appName);
// Set the data model
frame.setDataModel(dataModel);
frame.setLoaded(true);
frame.addWindowListener(this);
frame.setVisible(true);
geneSelection = frame.getGeneSelection();
geneSelection.addObserver(this);
arraySelection = frame.getArraySelection();
arraySelection.addObserver(this);
manager.registerService(this, RowsSetListener.class, new Properties());
}
Aggregations