|
Cytoscape 3.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CyNetworkTableManager
Provides access to all network-table relationships. CyTable
s
can be associated with a CyNetwork
by being assigned a
type and namespace within that
CyNetwork
. For example, a CyTable
that stores
CyNode
attributes would be of type CyNode.class
.
You can associate multiple CyTables
of a particular type
to a CyNetwork
as long as each of those CyTable
s
has a different namespace. For instance, to add multiple node tables to a
CyNetwork
, you would call:
setTable(network, CyNode.class, "my namespace", nodeTable1); setTable(network, CyNode.class, "my other namespace", nodeTable2);
So the triple (CyNetwork
, type, namespace) refers to exactly
one table at any given time. It's also possible to associate the same
CyTable
with multiple (CyNetwork
, type, namespace)
combinations.
By default, CyNetwork
s are associated with network, node, and edge tables
for each of the following namespaces:
Method Summary | |
---|---|
Set<CyNetwork> |
getNetworkSet()
Returns a read-only set of all networks managed by this instance. |
CyTable |
getTable(CyNetwork network,
Class<? extends CyIdentifiable> type,
String namespace)
Returns the table with the specified namespace and type from the network. |
Map<String,CyTable> |
getTables(CyNetwork network,
Class<? extends CyIdentifiable> type)
Returns a read-only map of all of the tables for the specified type from the network. |
void |
removeAllTables(CyNetwork network)
Removes all tables associated with the given network. |
void |
removeTable(CyNetwork network,
Class<? extends CyIdentifiable> type,
String namespace)
Removes the table with the specified namespace and type from the network. |
void |
reset()
Clears all the network-table relationships. |
void |
setTable(CyNetwork network,
Class<? extends CyIdentifiable> type,
String namespace,
CyTable table)
Associates the given table to the network using the specified namespace and type. |
Method Detail |
---|
void setTable(CyNetwork network, Class<? extends CyIdentifiable> type, String namespace, CyTable table)
network
- the CyNetwork
to associate the given table to.type
- Type of CyIdentifiable
associated with the table.namespace
- the namespace
the table should belong to.table
- the table to associate to the network with the specified namespace and type.CyTable getTable(CyNetwork network, Class<? extends CyIdentifiable> type, String namespace)
network
- the network to check for the table.type
- Type of CyIdentifiable
associated with the table.namespace
- the namespace
the table should belong to.
void removeTable(CyNetwork network, Class<? extends CyIdentifiable> type, String namespace)
network
- the network to remove the table from.type
- Type of CyIdentifiable
associated with the table.namespace
- the namespace
the table should belong to.Map<String,CyTable> getTables(CyNetwork network, Class<? extends CyIdentifiable> type)
network
- The network to return the tables of.type
- The type of the tables to return.
void reset()
Set<CyNetwork> getNetworkSet()
void removeAllTables(CyNetwork network)
network
- the network whose tables should be removed.
|
Cytoscape 3.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |