Search in sources :

Example 11 with CyProperty

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());
}
Also used : CyProperty(org.cytoscape.property.CyProperty) TreeViewFrame(edu.ucsf.rbvi.clusterMaker2.internal.treeview.TreeViewFrame) PropertyConfig(edu.ucsf.rbvi.clusterMaker2.internal.treeview.PropertyConfig) TreeViewModel(edu.ucsf.rbvi.clusterMaker2.internal.treeview.model.TreeViewModel) Properties(java.util.Properties)

Aggregations

CyProperty (org.cytoscape.property.CyProperty)11 Properties (java.util.Properties)8 SimpleCyProperty (org.cytoscape.property.SimpleCyProperty)5 PropertyConfig (edu.ucsf.rbvi.clusterMaker2.internal.treeview.PropertyConfig)4 ArrayList (java.util.ArrayList)3 CyNetwork (org.cytoscape.model.CyNetwork)3 VisualMappingManager (org.cytoscape.view.vizmap.VisualMappingManager)3 VisualStyle (org.cytoscape.view.vizmap.VisualStyle)3 KnnViewFrame (edu.ucsf.rbvi.clusterMaker2.internal.treeview.KnnViewFrame)2 TreeViewFrame (edu.ucsf.rbvi.clusterMaker2.internal.treeview.TreeViewFrame)2 KnnViewModel (edu.ucsf.rbvi.clusterMaker2.internal.treeview.model.KnnViewModel)2 TreeViewModel (edu.ucsf.rbvi.clusterMaker2.internal.treeview.model.TreeViewModel)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 CyEventHelper (org.cytoscape.event.CyEventHelper)2 CyNetworkView (org.cytoscape.view.model.CyNetworkView)2 CyNetworkViewManager (org.cytoscape.view.model.CyNetworkViewManager)2 File (java.io.File)1 FileOutputStream (java.io.FileOutputStream)1 List (java.util.List)1