|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.systemsbiology.cyni.CyniNetworkUtils
public class CyniNetworkUtils
This is a class that contains several methods to help while creating a new network
| Field Summary | |
|---|---|
protected org.cytoscape.model.CyNetworkManager |
netMgr
|
protected org.cytoscape.view.model.CyNetworkViewFactory |
viewFactory
|
protected org.cytoscape.view.model.CyNetworkViewManager |
viewMgr
|
protected org.cytoscape.view.vizmap.VisualMappingManager |
vmMgr
|
| Constructor Summary | |
|---|---|
CyniNetworkUtils(org.cytoscape.view.model.CyNetworkViewFactory networkViewFactory,
org.cytoscape.model.CyNetworkManager networkManager,
org.cytoscape.view.model.CyNetworkViewManager networkViewManager,
org.cytoscape.model.CyNetworkTableManager netTableMgr,
org.cytoscape.model.subnetwork.CyRootNetworkManager rootNetMgr,
org.cytoscape.view.vizmap.VisualMappingManager visualMapperManager)
Constructor. |
|
| Method Summary | ||
|---|---|---|
void |
addColumns(org.cytoscape.model.CyNetwork origNet,
org.cytoscape.model.CyNetwork newNet,
org.cytoscape.model.CyTable origTable,
Class<? extends org.cytoscape.model.CyIdentifiable> tableType,
String namespace)
Add columns that belong to a table associated to a network to a new table associated to a new network. |
|
void |
cloneEdgeRow(org.cytoscape.model.CyNetwork newNet,
org.cytoscape.model.CyRow sourceRow,
org.cytoscape.model.CyEdge targetEdge)
Clone the row data to the row corresponding to an edge of the specified network |
|
void |
cloneNodeRow(org.cytoscape.model.CyNetwork newNet,
org.cytoscape.model.CyRow sourceRow,
org.cytoscape.model.CyNode targetNode)
Clone the row data to the row corresponding to a node of the specified network |
|
void |
copyEdgeColumns(org.cytoscape.model.CyNetwork newNetwork,
org.cytoscape.model.CyTable origTable)
Copy the columns from a table to the edge table of a network. |
|
void |
copyNodeColumns(org.cytoscape.model.CyNetwork newNetwork,
org.cytoscape.model.CyTable origTable)
Copy the columns from a table to the node table of a network. |
|
|
createEdgeColumn(org.cytoscape.model.CyNetwork newNetwork,
String columnName,
Class<? extends T> type,
boolean isImmutable)
Create a column of the specified name and the specified type in the edge table of the specified network. |
|
|
createNetworkColumn(org.cytoscape.model.CyNetwork newNetwork,
String columnName,
Class<? extends T> type,
boolean isImmutable)
Create a column of the specified name and the specified type in the network table of the specified network. |
|
|
createNodeColumn(org.cytoscape.model.CyNetwork newNetwork,
String columnName,
Class<? extends T> type,
boolean isImmutable)
Create a column of the specified name and the specified type in the node table of the specified network. |
|
org.cytoscape.view.model.CyNetworkView |
displayNewNetwork(org.cytoscape.model.CyNetwork newNetwork,
org.cytoscape.model.CyNetwork oldNetwork,
boolean directed)
This method displays the new network and return a network view that might be used to modify the display features such as the layout |
|
org.cytoscape.model.CyNetwork |
getNetworkAssociatedToTable(org.cytoscape.model.CyTable table)
Checks if the table is associated to a network, if so it returns the associated network otherwise it returns null |
|
void |
removeNodesWithoutEdges(org.cytoscape.model.CyNetwork network)
Remove nodes that do not have any edge |
|
void |
setNetworkName(org.cytoscape.model.CyNetwork newNetwork,
String name)
Sets the name of the network |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.cytoscape.view.model.CyNetworkViewFactory viewFactory
protected org.cytoscape.model.CyNetworkManager netMgr
protected org.cytoscape.view.model.CyNetworkViewManager viewMgr
protected org.cytoscape.view.vizmap.VisualMappingManager vmMgr
| Constructor Detail |
|---|
public CyniNetworkUtils(org.cytoscape.view.model.CyNetworkViewFactory networkViewFactory,
org.cytoscape.model.CyNetworkManager networkManager,
org.cytoscape.view.model.CyNetworkViewManager networkViewManager,
org.cytoscape.model.CyNetworkTableManager netTableMgr,
org.cytoscape.model.subnetwork.CyRootNetworkManager rootNetMgr,
org.cytoscape.view.vizmap.VisualMappingManager visualMapperManager)
networkViewFactory - The network view factory to create a new network viewnetworkManager - The network managernetworkViewManager - The network view managernetTableMgr - The network table manager to generate a new network and its tablerootNetMgr - The root network manager to generate a new root networkvmMgr - The Visual mapping manager that allows changing the visual style of a network| Method Detail |
|---|
public void copyNodeColumns(org.cytoscape.model.CyNetwork newNetwork,
org.cytoscape.model.CyTable origTable)
newNet - The new networkorigTable - The original table
public void copyEdgeColumns(org.cytoscape.model.CyNetwork newNetwork,
org.cytoscape.model.CyTable origTable)
newNet - The new networkorigTable - The original table
public void setNetworkName(org.cytoscape.model.CyNetwork newNetwork,
String name)
newNet - The networkname - The name of the network
public <T> void createNodeColumn(org.cytoscape.model.CyNetwork newNetwork,
String columnName,
Class<? extends T> type,
boolean isImmutable)
newNetwork - The network where the new column will be createdcolumnName - The name of the new column.type - The type of the column.isImmutable - if true, this column can never be deleted
public <T> void createEdgeColumn(org.cytoscape.model.CyNetwork newNetwork,
String columnName,
Class<? extends T> type,
boolean isImmutable)
newNetwork - The network where the new column will be createdcolumnName - The name of the new column.type - The type of the column.isImmutable - if true, this column can never be deleted
public <T> void createNetworkColumn(org.cytoscape.model.CyNetwork newNetwork,
String columnName,
Class<? extends T> type,
boolean isImmutable)
newNetwork - The network where the new column will be createdcolumnName - The name of the new column.type - The type of the column.isImmutable - if true, this column can never be deleted
public void addColumns(org.cytoscape.model.CyNetwork origNet,
org.cytoscape.model.CyNetwork newNet,
org.cytoscape.model.CyTable origTable,
Class<? extends org.cytoscape.model.CyIdentifiable> tableType,
String namespace)
origNet - The original network(it can be null if original table does not belong to a network)newNet - The new networkorigTable - The original tabletableType - The type of the table (Node, edge or network table)namespace - The namespace of the network table
public void cloneNodeRow(org.cytoscape.model.CyNetwork newNet,
org.cytoscape.model.CyRow sourceRow,
org.cytoscape.model.CyNode targetNode)
newNet - The network where the node belongssourceRow - The source rowtargetNode - The target node where the data will be cloned
public void cloneEdgeRow(org.cytoscape.model.CyNetwork newNet,
org.cytoscape.model.CyRow sourceRow,
org.cytoscape.model.CyEdge targetEdge)
newNet - The network where the node belongssourceRow - The source rowtargetEdge - The target edge where the data will be clonedpublic org.cytoscape.model.CyNetwork getNetworkAssociatedToTable(org.cytoscape.model.CyTable table)
table - The table to check
public void removeNodesWithoutEdges(org.cytoscape.model.CyNetwork network)
network - The network to remove nodes
public org.cytoscape.view.model.CyNetworkView displayNewNetwork(org.cytoscape.model.CyNetwork newNetwork,
org.cytoscape.model.CyNetwork oldNetwork,
boolean directed)
newNetwork - The new networkoldNetwork - The old network in case we are using a table associated to a network otherwise it is a nulldirected - Tells whether the new network is a directed graph or not
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||