Search in sources :

Example 41 with CyNetworkView

use of org.cytoscape.view.model.CyNetworkView in project cytoscape-api by cytoscape.

the class SetSelectedNteworkViewsEventTest method testGoodGetSelectedNetworkViewsEvent.

@Test
public void testGoodGetSelectedNetworkViewsEvent() {
    final List<CyNetworkView> views = new ArrayList<CyNetworkView>();
    final SetSelectedNetworkViewsEvent e = new SetSelectedNetworkViewsEvent(source, views);
    assertNotNull(e.getNetworkViews());
    assertEquals(views, e.getNetworkViews());
}
Also used : ArrayList(java.util.ArrayList) SetSelectedNetworkViewsEvent(org.cytoscape.application.events.SetSelectedNetworkViewsEvent) CyNetworkView(org.cytoscape.view.model.CyNetworkView) Test(org.junit.Test)

Aggregations

CyNetworkView (org.cytoscape.view.model.CyNetworkView)41 Test (org.junit.Test)16 CyNetwork (org.cytoscape.model.CyNetwork)13 EnrichmentMap (org.baderlab.csplugins.enrichmentmap.model.EnrichmentMap)10 VisualStyle (org.cytoscape.view.vizmap.VisualStyle)8 CyNode (org.cytoscape.model.CyNode)7 HashMap (java.util.HashMap)5 JPanel (javax.swing.JPanel)5 CyEdge (org.cytoscape.model.CyEdge)5 TaskIterator (org.cytoscape.work.TaskIterator)5 Timer (javax.swing.Timer)4 EMDataSet (org.baderlab.csplugins.enrichmentmap.model.EMDataSet)4 EMSignatureDataSet (org.baderlab.csplugins.enrichmentmap.model.EMSignatureDataSet)4 CyTable (org.cytoscape.model.CyTable)4 CyCustomGraphics2 (org.cytoscape.view.presentation.customgraphics.CyCustomGraphics2)4 Inject (com.google.inject.Inject)3 ActionEvent (java.awt.event.ActionEvent)3 ActionListener (java.awt.event.ActionListener)3 HashSet (java.util.HashSet)3 List (java.util.List)3