|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cytoscape.session.CySession.Builder
public static class CySession.Builder
A implementation of the builder pattern used to construct immutable instances of CySession objects.
Constructor Summary | |
---|---|
CySession.Builder()
|
Method Summary | |
---|---|
CySession.Builder |
appFileListMap(Map<String,List<File>> p)
Returns an instance of Builder that has at least been configured with the specified app file list map. The app name should follow the java class namespace convention (e.g. |
CySession |
build()
Returns a complete instance of CySession based upon the methods called on this instance of Builder. |
CySession.Builder |
networks(Set<CyNetwork> networks)
Returns an instance of Builder that has at least been configured with the specified networks. |
CySession.Builder |
networkViews(Set<CyNetworkView> views)
Returns an instance of Builder that has at least been configured with the specified network views. |
CySession.Builder |
objectMap(Map<Class<? extends CyIdentifiable>,Map<Object,? extends CyIdentifiable>> map)
Returns an instance of Builder that has at least been configured with the specified old ID maps. |
CySession.Builder |
properties(Set<CyProperty<?>> p)
Returns an instance of Builder that has at least been configured with the specified properties. |
CySession.Builder |
tables(Set<CyTableMetadata> tables2)
Returns an instance of Builder that has at least been configured with the specified tables. |
CySession.Builder |
viewVisualStyleMap(Map<CyNetworkView,String> vs)
Returns an instance of Builder that has at least been configured with the specified network view visual style name map. |
CySession.Builder |
visualStyles(Set<VisualStyle> styles)
Returns an instance of Builder that has at least been configured with the specified properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CySession.Builder()
Method Detail |
---|
public CySession build()
public CySession.Builder networks(Set<CyNetwork> networks)
views
- A Set of CyNetwork objects, presumably all networks that exist in this instance of Cytoscape.
public CySession.Builder networkViews(Set<CyNetworkView> views)
views
- A Set of CyNetworkView objects, presumably all network views that exist in this instance of
Cytoscape.
public CySession.Builder tables(Set<CyTableMetadata> tables2)
tables2
- A Set of CyTable objects, presumably all tables that exist in this instance of Cytoscape.
public CySession.Builder viewVisualStyleMap(Map<CyNetworkView,String> vs)
vs
- A map of CyNetworkViews to the names of the VisualStyle currently applied to that network view, for
presumably all network views that exist in this instance of Cytoscape.
public CySession.Builder properties(Set<CyProperty<?>> p)
p
- A set of session related CyProperty
objects.
public CySession.Builder visualStyles(Set<VisualStyle> styles)
styles
- All VisualStyles in this instance of Cytoscape.
public CySession.Builder appFileListMap(Map<String,List<File>> p)
p
- A map of app names to a list of File objects that the given app wants stored in the session file.
The app name should follow the java class namespace convention.
public CySession.Builder objectMap(Map<Class<? extends CyIdentifiable>,Map<Object,? extends CyIdentifiable>> map)
map
- A map of CyIdentifiable
types to maps that have former identifiers as keys and CyNode
s,
CyEdge
s, CyNetwork
s or CyNetworkView
s as values.
|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |