public final class CySession extends Object
CySession session = new CySession.Builder().networkViews(viewList).cytoscapeProperties(cyProps).build();
Module: session-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>session-api</artifactId> </dependency>
Modifier and Type | Class and Description |
---|---|
static class |
CySession.Builder
A implementation of the builder pattern used to construct immutable instances of CySession objects.
|
Modifier and Type | Method and Description |
---|---|
Map<String,List<File>> |
getAppFileListMap()
Returns a map of app names to lists of File objects that are stored as part of the session for the specified app.
|
Set<CyNetwork> |
getNetworks()
Returns a set of all CyNetwork objects contained in this Session.
|
Set<CyNetworkView> |
getNetworkViews()
Returns a set of all CyNetworkView objects contained in this Session.
|
<T extends CyIdentifiable> |
getObject(Long oldSUID,
Class<T> type)
When a session is restored, Cytoscape automatically generates new SUIDs.
|
<T extends CyIdentifiable> |
getObject(String oldId,
Class<T> type)
When a session is restored, Cytoscape automatically generates new SUIDs.
|
Set<CyProperty<?>> |
getProperties()
Returns a set of
CyProperty objects defined for this session. |
Set<CyTableMetadata> |
getTables()
Returns a set of all CyTable objects contained in this Session.
|
Map<CyNetworkView,String> |
getViewVisualStyleMap()
Returns a map of CyNetworkViews to the names of the VisualStyle applied to that network view in this session.
|
Set<VisualStyle> |
getVisualStyles()
Returns a set containing all VisualStyles defined for this session.
|
public Set<CyNetwork> getNetworks()
public Set<CyNetworkView> getNetworkViews()
public Set<CyTableMetadata> getTables()
public Map<CyNetworkView,String> getViewVisualStyleMap()
public Set<CyProperty<?>> getProperties()
CyProperty
objects defined for this session.CyProperty
objects. defined for this session.public Set<VisualStyle> getVisualStyles()
VisualStyle
objectspublic Map<String,List<File>> getAppFileListMap()
public <T extends CyIdentifiable> T getObject(Long oldSUID, Class<T> type)
CyNode
, CyEdge
, CyNetwork
or CyNetworkView
) given its former SUID.oldSUID
- The former SUID.type
- The Class of the object to be returned (CyNode
, CyEdge
, CyNetwork
or
CyNetworkView
).CyNode
, CyEdge
, CyNetwork
or CyNetworkView
) given its former
SUID.public <T extends CyIdentifiable> T getObject(String oldId, Class<T> type)
CyNode
, CyEdge
, CyNetwork
or CyNetworkView
) given its former identifier.oldId
- The former ID, from Cytocape versions prior than 3.0.type
- The Class of the object to be returned (CyNode
, CyEdge
, CyNetwork
or
CyNetworkView
).CyNode
, CyEdge
, CyNetwork
or CyNetworkView
) given its former
identifier.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.