|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttudelft.CytoscapeRPC.CytoscapeRPCCallHandler
public class CytoscapeRPCCallHandler
This class implements all the supported methods for the Cytoscape XMLRPC server. It acts as a basic translator of XMLRPC calls to native Cytoscape functions with some additional error checking.
| Constructor Summary | |
|---|---|
CytoscapeRPCCallHandler()
Constructs a CytoscapeRPCCallHandler. |
|
| Method Summary | ||
|---|---|---|
java.util.List<java.lang.String> |
_getAttributeNames()
Function which returns all the function names. |
|
java.util.List<java.lang.String> |
_rGetNodesPositions(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs)
R function for getting node positions. |
|
java.util.List<java.lang.String> |
_rGetNodesPositions(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs,
java.lang.String nodeNameDelim,
java.lang.String xyDelim)
R function for getting node positions. |
|
boolean |
addBooleanEdgeAttribute(java.lang.String name,
java.lang.String ID,
boolean value)
Add a boolean attribute to an edge. |
|
boolean |
addBooleanEdgeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Boolean> values)
Add boolean attributes to a number of edges. |
|
boolean |
addBooleanNetworkAttribute(java.lang.String name,
java.lang.String ID,
boolean value)
Add a boolean attribute to a network. |
|
boolean |
addBooleanNetworkAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Boolean> values)
Add boolean attributes to a number of networks. |
|
boolean |
addBooleanNodeAttribute(java.lang.String name,
java.lang.String ID,
boolean value)
Add a boolean attribute to a node. |
|
boolean |
addBooleanNodeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Boolean> values)
Add boolean attributes to a number of nodes. |
|
boolean |
addDoubleEdgeAttribute(java.lang.String name,
java.lang.String ID,
double value)
Add a double attribute to an edge. |
|
boolean |
addDoubleEdgeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Double> values)
Add double attributes to a number of edges. |
|
boolean |
addDoubleNetworkAttribute(java.lang.String name,
java.lang.String ID,
double value)
Add a double attribute to a network. |
|
boolean |
addDoubleNetworkAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Double> values)
Add double attributes to a number of networks. |
|
boolean |
addDoubleNodeAttribute(java.lang.String name,
java.lang.String ID,
double value)
Add a double attribute to a node. |
|
boolean |
addDoubleNodeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Double> values)
Add double attributes to a number of nodes. |
|
boolean |
addEdgeAttribute(java.lang.String name,
java.lang.String type,
java.lang.String ID,
java.lang.Object value)
Add an attribute to an edge. |
|
boolean |
addEdgeAttributes(java.lang.String name,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> values)
Adds attributes to CyEdges. |
|
boolean |
addEdgeAttributes(java.lang.String name,
java.lang.String type,
java.util.Vector<java.lang.String> edgeIDs,
java.util.Vector<java.lang.Object> values)
Adds attributes to CyEdges. |
|
boolean |
addIntegerEdgeAttribute(java.lang.String name,
java.lang.String ID,
int value)
Add a integer attribute to an edge. |
|
boolean |
addIntegerEdgeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Integer> values)
Add integer attributes to a number of edges. |
|
boolean |
addIntegerNetworkAttribute(java.lang.String name,
java.lang.String ID,
int value)
Add a integer attribute to a network. |
|
boolean |
addIntegerNetworkAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Integer> values)
Add integer attributes to a number of networks. |
|
boolean |
addIntegerNodeAttribute(java.lang.String name,
java.lang.String ID,
int value)
Add a integer attribute to a node. |
|
boolean |
addIntegerNodeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Integer> values)
Add integer attributes to a number of nodes. |
|
boolean |
addNetworkAttribute(java.lang.String name,
java.lang.String type,
java.lang.String networkID,
java.lang.Object value)
Add an attribute to a network. |
|
boolean |
addNetworkAttributes(java.lang.String name,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> values)
Add attributes to CyNetworks. |
|
boolean |
addNetworkAttributes(java.lang.String name,
java.lang.String type,
java.lang.String[] networkIDs,
java.lang.Object[] values)
Add attributes to CyNetworks. |
|
boolean |
addNodeAttribute(java.lang.String name,
java.lang.String type,
java.lang.String ID,
java.lang.Object value)
Add an attribute to a node. |
|
boolean |
addNodeAttributes(java.lang.String name,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> values,
boolean forgive)
Add attributes to nodes. |
|
boolean |
addNodesToNetwork(java.util.List nodeIDs,
boolean forgive)
Add nodes that already exist in Cytoscape to the current network. |
|
boolean |
addNodesToNetwork(java.lang.String networkID,
java.util.List nodeIDs,
boolean forgive)
Adds nodes that already exist in Cytoscape to a network. |
|
boolean |
addStringEdgeAttribute(java.lang.String name,
java.lang.String ID,
java.lang.String value)
Add a string attribute to an edge. |
|
boolean |
addStringEdgeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.String> values)
Add string attributes to a number of edges. |
|
boolean |
addStringNetworkAttribute(java.lang.String name,
java.lang.String ID,
java.lang.String value)
Add a string attribute to a network. |
|
boolean |
addStringNetworkAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.String> values)
Add string attributes to a number of networks. |
|
boolean |
addStringNodeAttribute(java.lang.String name,
java.lang.String ID,
java.lang.String value)
Add a string attribute to a node. |
|
boolean |
addStringNodeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.String> values)
Add string attributes to a number of nodes. |
|
protected static
|
arraysToMap(A[] keys,
B[] values)
Creates a hashmap out of a list of keys and a list of values |
|
boolean |
arrowMapper()
Function to overwrite the arrow settings. |
|
boolean |
clearEdgeSelection()
Clear the edge selection of the current network. |
|
boolean |
clearEdgeSelection(java.lang.String networkID)
Clear the edge selection of a network. |
|
boolean |
clearNodeSelection()
Unselect all nodes in the current network. |
|
boolean |
clearNodeSelection(java.lang.String networkID)
Unselect all nodes in a network. |
|
boolean |
clearSelection()
Clear the edge and node selection of the current network. |
|
boolean |
clearSelection(java.lang.String networkID)
Clear the edge and node selections of a network. |
|
boolean |
clearStatusBarMessage()
Clear the status bar message. |
|
boolean |
closeAllNetworkViews()
Close all network views. |
|
boolean |
closeNetworkView(java.lang.String networkID)
Close one network view. |
|
boolean |
copyVisualStyle(java.lang.String fromName,
java.lang.String toName)
Copies a VisualStyle. |
|
int |
countAllEdges()
Count all edges present in Cytoscape. |
|
int |
countAllNodes()
Count all nodes present in Cytoscape. |
|
int |
countEdges()
Count the number of edges in the current network. |
|
int |
countEdges(java.lang.String networkID)
Count the number of edges in a particular network. |
|
int |
countNodes()
Count the number of nodes in the current network. |
|
int |
countNodes(java.lang.String networkID)
Count the number of nodes in a particular network. |
|
int |
countSelectedEdges()
Count the number of selected edges in the current network. |
|
int |
countSelectedEdges(java.lang.String networkID)
Count the number of selected edges in a particular network. |
|
int |
countSelectedNodes()
Count the number of selected nodes in the current network. |
|
int |
countSelectedNodes(java.lang.String networkID)
Get the number of selected nodes for the specified network. |
|
boolean |
createContinuousEdgeVisualStyle(java.lang.String attrName,
java.lang.String edgePropName,
double maxEdgeWidth)
Create a continuous visual style for edges based on an edge attribute. |
|
boolean |
createContinuousEdgeVisualStyle(java.lang.String attrName,
java.lang.String edgePropName,
double minValue,
double midValue,
double maxValue,
double maxEdgeWidth)
Deprecated. Use createContinuousMapper |
|
boolean |
createContinuousEdgeVisualStyle(java.lang.String attrName,
java.lang.String edgePropName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues)
Create a new continuous visual style for edges and apply it. |
|
boolean |
createContinuousEdgeVisualStyle(java.lang.String attrName,
java.lang.String edgePropName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues,
boolean redraw)
Create a new continuous visual style for edges and apply it. |
|
boolean |
createContinuousMapper(java.lang.String styleName,
java.lang.String attrName,
java.lang.String propertyName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues)
Create a continuous mapper |
|
boolean |
createContinuousMapper(java.lang.String styleName,
java.lang.String attrName,
java.lang.String propertyName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues,
boolean redraw)
Create a continuous mapper |
|
boolean |
createContinuousNodeColorVisualStyle(java.lang.String attrName,
java.lang.String nodePropName,
java.lang.String minColorS,
java.lang.String midColorS,
java.lang.String maxColorS,
double minValue,
double midValue,
double maxValue)
Deprecated. use createContinuousMapper |
|
boolean |
createContinuousNodeVisualStyle(java.lang.String attrName,
java.lang.String nodePropName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues)
Create a continuous style for nodes. |
|
boolean |
createContinuousNodeVisualStyle(java.lang.String attrName,
java.lang.String nodePropName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues,
boolean redraw)
Create a continuous style for nodes. |
|
boolean |
createDiscreteMapper(java.lang.String styleName,
java.lang.String attrName,
java.lang.String visualPropertyName,
java.lang.String defaultValue,
java.util.List values,
java.util.List props)
Alternative implementation of the discrete mapper method which overcomes the inability of XML-RPC to send numeric keys in maps. |
|
boolean |
createDiscreteMapper(java.lang.String styleName,
java.lang.String attrName,
java.lang.String visualPropertyName,
java.lang.String defaultValue,
java.util.Map<java.lang.String,java.lang.String> mapping)
Create a discrete mapper based on the provided attributes. |
|
boolean |
createDiscreteMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String visualPropertyName,
java.lang.String defaultValue,
java.util.Map<java.lang.String,java.lang.String> mapping)
Deprecated. Use same function but without network parameter. |
|
java.lang.String |
createEdge(java.lang.String from,
java.lang.String to,
java.lang.String type,
boolean directed)
Create one edge in the current network. |
|
java.lang.String |
createEdge(java.lang.String networkID,
java.lang.String from,
java.lang.String to,
java.lang.String type,
boolean directed)
Create one edge in the specified network. |
|
java.util.List<java.lang.String> |
createEdges(java.util.List<java.lang.String> from,
java.util.List<java.lang.String> to,
java.util.List<java.lang.String> type,
java.util.List<java.lang.Boolean> directed,
boolean forgive)
Add edges to the current network. |
|
java.util.List<java.lang.String> |
createEdges(java.lang.String networkID,
java.util.List<java.lang.String> from,
java.util.List<java.lang.String> to,
java.util.List<java.lang.String> type,
java.util.List<java.lang.Boolean> directed,
boolean forgive)
Add edges to a Cytoscape network. |
|
java.util.Vector<java.lang.String> |
createEdges(java.lang.String networkID,
java.util.Vector<java.lang.String> sources,
java.util.Vector<java.lang.String> targets)
Create edges in the provided network. |
|
java.util.Vector<java.lang.String> |
createEdges(java.util.Vector<java.lang.String> sources,
java.util.Vector<java.lang.String> targets)
Create edges in the current network. |
|
java.util.List<java.lang.String> |
createEdgesFromVector(java.lang.String networkID,
java.util.Vector sources,
java.util.Vector targets)
Deprecated. Use createEdges(java.lang.String, java.util.List with same
parameters. |
|
java.util.List<java.lang.String> |
createEdgesFromVector(java.util.Vector sources,
java.util.Vector targets)
Deprecated. Use createEdges(java.lang.String, java.util.List with same
parameters. |
|
java.lang.String |
createNetwork(java.lang.String title)
Creates a new CyNetwork with the supplied title. |
|
java.lang.String |
createNetwork(java.lang.String title,
boolean createView)
Create a new CyNetwork with the supplied title. |
|
java.lang.String |
createNetworkFromSelection(java.lang.String networkID,
java.lang.String networkName)
Create a new network based on the selected nodes of another network. |
|
boolean |
createNetworkView(java.lang.String networkID)
Creates a new network view. |
|
java.lang.String |
createNode(java.lang.String identifier)
Create a node in the current network. |
|
java.lang.String |
createNode(java.lang.String networkID,
java.lang.String identifier)
Create a node in the supplied network. |
|
boolean |
createNodes(java.util.List identifiers)
Create nodes in the current network. |
|
boolean |
createNodes(java.lang.String networkID,
java.util.List identifiers)
Create new nodes in a network. |
|
boolean |
createNodesFromVector(java.lang.String networkID,
java.util.Vector identifiers)
Create nodes in the current network. |
|
boolean |
createNodesFromVector(java.util.Vector identifiers)
Create nodes in the current network. |
|
boolean |
createPassthroughMapper(java.lang.String attrName,
java.lang.String property,
java.lang.String def)
Create a passthrough mapper for the current visual style. |
|
boolean |
createPassthroughMapper(java.lang.String vizstyleName,
java.lang.String attrName,
java.lang.String property,
java.lang.String def)
Create a passthrough mapper. |
|
boolean |
createPassthroughMapper(java.lang.String vizstyleName,
java.lang.String attrName,
java.lang.String property,
java.lang.String def,
boolean redraw)
Create a passthrough mapper. |
|
java.lang.String |
cytoscapeVersion()
Method to get the Cytoscape version. |
|
boolean |
deleteEdgeAttribute(java.lang.String attrName)
Delete one attribute for all edges. |
|
boolean |
deleteEdgeAttribute(java.lang.String ID,
java.lang.String name)
Delete an edge attribute for a certain edge. |
|
boolean |
deleteNetworkAttribute(java.lang.String attrName)
Delete one attribute for all networks. |
|
boolean |
deleteNetworkAttribute(java.lang.String ID,
java.lang.String name)
Delete a network attribute for a certain network. |
|
boolean |
deleteNodeAttribute(java.lang.String attrName)
Delete one attribute for all nodes. |
|
boolean |
deleteNodeAttribute(java.lang.String ID,
java.lang.String name)
Delete an attribute for a certain node. |
|
boolean |
deleteNodeByPassAttr(java.lang.String type)
Method which allows you to delete an attribute which overwrites the normal behaviour of the vismapper. |
|
boolean |
deleteVisualStyle(java.lang.String styleName)
Delete a visual style. |
|
boolean |
deselectNode(java.lang.String networkID,
java.lang.String nodeID)
Remove a node from the current selection. |
|
boolean |
destroyNetwork(java.lang.String networkID)
Destroys a network. |
|
boolean |
discreteMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String visualPropertyName,
java.lang.String defaultValue,
java.util.List values,
java.util.List props)
Deprecated. use the createDiscreteMapper function with the same parameters instead. |
|
boolean |
discreteMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String visualPropertyName,
java.lang.String defaultValue,
java.util.Map<java.lang.String,java.lang.String> mapping)
Deprecated. Use the createDiscreteMapper functions with the same parameters instead. |
|
boolean |
dockPanel(java.lang.String panelName)
Dock a panel to the Cytoscape main window. |
|
boolean |
edgePassthroughMapper(java.lang.String attrName,
java.lang.String property,
java.lang.String def)
Deprecated. Use the createPassthroughMapper instead. |
|
java.util.ArrayList<java.lang.Boolean> |
edgesHaveAttribute(java.lang.String name,
java.util.Vector<java.lang.String> ids)
Check if a list of edges have a particular attribute. |
|
java.util.Map<java.lang.String,java.lang.Object> |
executeCommand(java.lang.String namespace,
java.lang.String command,
java.util.Map arguments)
Execute one command from an external plugin. |
|
boolean |
exportView(java.lang.String location,
java.lang.String type,
java.lang.Double scale)
Export the current view to an image file. |
|
boolean |
exportView(java.lang.String networkID,
java.lang.String location,
java.lang.String type,
java.lang.Double scale)
Export a network view to an image file. |
|
boolean |
fitContent(java.lang.String networkID)
Fit all the viewable elements onto this graph. |
|
boolean |
fitSelectedContent(java.lang.String networkID)
Fit all the selected elements onto this graph. |
|
boolean |
floatPanel(java.lang.String panelName)
Make a currently attached panel float. |
|
java.util.List<java.lang.String> |
getAdjacentEdges(java.lang.String networkID,
java.lang.String nodeID)
Get the edges coming from and going to a node. |
|
java.util.List<java.lang.String> |
getAllEdges()
Method to get all the edges available in Cytoscape. |
|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
getAllNetworks()
Method to get a list of all the available networks, represented by their networkid and network title. |
|
java.util.Vector<java.lang.String> |
getAllNodes()
Get a list of nodes. |
|
java.util.List<java.lang.String> |
getArrowShapeNames()
Get a list of all the names of the different arrowheads that can be used. |
|
java.util.List<java.lang.Double> |
getCenter(java.lang.String networkID)
|
|
static java.util.List<java.lang.String> |
getChildConnectingEdges(java.util.List<java.lang.String> nodeIDs)
Get the edges connecting the currently selected nodes and their children. |
|
static java.util.List<java.lang.String> |
getChildConnectingEdges(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs)
Get the edges connecting the specified nodes and their children. |
|
java.util.List<java.lang.String> |
getCommandList(java.lang.String namespace)
Get all the commands provided by a certain namespace. |
|
java.util.List<java.lang.String> |
getConnectedEdges(java.lang.String nodeID1,
java.lang.String nodeID2)
Get the edges between two nodes in the current network |
|
java.util.List<java.lang.String> |
getConnectedEdges(java.lang.String networkID,
java.lang.String nodeID1,
java.lang.String nodeID2)
Get the edges between two nodes. |
|
java.util.List<java.lang.String> |
getConnectedEdges(java.lang.String networkID,
java.util.Vector<java.lang.String> nodeIDs)
Get the edges between a number of nodes. |
|
java.util.List<java.lang.String> |
getConnectedEdges(java.util.Vector<java.lang.String> nodeIDs)
Get the edges between a number of nodes. |
|
java.lang.String |
getCurrentNetworkIndex()
Get the index of the current network. |
|
java.util.Map<java.lang.String,java.lang.String> |
getCurrentNetworkProperties()
Returns the current network. |
|
java.lang.String |
getCurrentVisualStyle()
Returns the name of the current VisualStyle. |
|
java.lang.String |
getCytoscapeVersion()
Alternative to the cytoscapeVersion function. |
|
java.lang.String |
getDefaultBackgroundColor(java.lang.String styleName)
|
|
java.lang.String |
getDefaultEdgeReverseSelectionColor(java.lang.String styleName)
|
|
java.lang.String |
getDefaultEdgeSelectionColor(java.lang.String styleName)
|
|
java.lang.String |
getDefaultNodeReverseSelectionColor(java.lang.String styleName)
|
|
java.lang.String |
getDefaultNodeSelectionColor(java.lang.String styleName)
|
|
java.lang.Object |
getEdgeAttribute(java.lang.String edgeID,
java.lang.String attrName)
Get node attribute. |
|
java.util.List<java.lang.String> |
getEdgeAttributeNames()
Get all the names of edge attributes. |
|
java.util.Map<java.lang.String,java.lang.Object> |
getEdgeAttributes(java.lang.String edgeID)
Get all the attribute values for an edge. |
|
java.lang.String |
getEdgeAttributeType(java.lang.String attrName)
Get the type of an edge attribute. |
|
java.util.List<java.lang.String> |
getEdges()
Get all the edge identifiers of the current network. |
|
java.util.List<java.lang.String> |
getEdges(java.lang.String networkID)
Get all the edge identifiers of a network. |
|
java.util.List<java.lang.Object> |
getEdgesAttributes(java.lang.String attrName,
java.util.Vector<java.lang.String> ids)
Get for a list of edges the value of an attribute. |
|
java.util.List<java.lang.String> |
getEdgeSourceNodes(java.lang.String networkID,
java.util.Vector<java.lang.String> edgeNames)
Get the source nodes of a number of edges. |
|
java.util.List<java.lang.String> |
getEdgeTargetNodes(java.lang.String networkID,
java.util.Vector<java.lang.String> edgeNames)
Get the target nodes of a number of edges. |
|
java.util.List<java.lang.String> |
getFontFaces()
Get the names of the fonts available in Cytoscape. |
|
java.lang.String |
getFunctions()
Displays a list of all available functions in this class. |
|
int |
getInputArgMismatchCode()
Get the error number for argument mismatch errors. |
|
java.util.List<java.lang.String> |
getLayoutNames()
Helper function to get the names of all available layouts. |
|
java.util.Map<java.lang.String,java.lang.String> |
getLayoutNamesMapping()
|
|
java.util.List<java.lang.String> |
getLayoutProperties(java.lang.String layoutName)
Get the property names (tunable names) for a layout. |
|
java.lang.String |
getLayoutPropertyType(java.lang.String layoutName,
java.lang.String propertyName)
Get the type of a layout property. |
|
java.util.Map<java.lang.String,java.lang.String> |
getLayoutPropertyTypes(java.lang.String layoutName)
Get the names and types of all the properties of a layout. |
|
java.lang.Object |
getLayoutPropertyValue(java.lang.String layoutName,
java.lang.String propertyName)
Get the current property value of a layout algorithm. |
|
java.util.Map<java.lang.String,java.lang.Object> |
getLayoutPropertyValues(java.lang.String layoutName)
Get the current property values of a layout algorithm. |
|
java.util.List<java.lang.String> |
getLineStyleNames()
Get a list of all the names of the different line styles which can be used. |
|
java.util.List<java.lang.String> |
getNamespaceList()
Get all the namespaces available through the CyCommands api. |
|
java.util.List<java.lang.String> |
getNetworkAttributeNames()
Get all the names of network attributes. |
|
java.util.Map<java.lang.String,java.lang.Object> |
getNetworkAttributes(java.lang.String networkID)
Get all the attribute values for a network. |
|
java.lang.String |
getNetworkAttributeType(java.lang.String attrName)
Finds the type of a network attribute. |
|
int |
getNetworkCount()
Get the number of available networks. |
|
java.lang.String |
getNetworkID()
Retrieve the ID of the current network. |
|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
getNetworkList()
Function to list the ids and titles of all networks available in Cytoscape. |
|
java.util.Vector<java.lang.Object> |
getNetworksAttributes(java.lang.String name,
java.util.Vector<java.lang.String> IDs)
Get the attribute values for one attribute for a number of networks. |
|
java.lang.String |
getNetworkTitle()
Get the title of the current network. |
|
java.lang.String |
getNetworkTitle(java.lang.String networkID)
Get the title of the network with the supplied ID. |
|
java.lang.Object |
getNodeAttribute(java.lang.String nodeID,
java.lang.String attrName)
Get node attribute. |
|
java.util.List<java.lang.String> |
getNodeAttributeNames()
Get all the names of node attributes. |
|
java.util.Map<java.lang.String,java.lang.Object> |
getNodeAttributes(java.lang.String nodeID)
Get all the attribute values for a node. |
|
java.lang.String |
getNodeAttributeType(java.lang.String attrName)
Finds the type of a node attribute. |
|
java.util.List<java.lang.String> |
getNodeChildren(java.lang.String networkID,
java.lang.String nodeID)
Get the children of a node. |
|
java.util.List<java.lang.String> |
getNodeColorPropertyNames()
Helper method to list all the names of the color properties of nodes. |
|
java.util.List<java.lang.String> |
getNodeNeighbors(java.lang.String nodeID)
Get the neighbors of a node in the current network. |
|
java.util.List<java.lang.String> |
getNodeNeighbors(java.lang.String networkID,
java.lang.String nodeID)
Get the neighbors of a node in a particular network. |
|
java.util.Vector<java.lang.String> |
getNodes()
Get the IDs of all the nodes in the current network. |
|
java.util.Vector<java.lang.String> |
getNodes(java.lang.String networkID)
Retrieve the IDs of all the nodes in a network. |
|
java.util.Vector<java.lang.Object> |
getNodesAttributes(java.lang.String name,
java.util.Vector<java.lang.String> IDs)
Get the attribute values for one attribute for a number of nodes. |
|
java.util.List<java.lang.String> |
getNodesByStringAttr(java.lang.String attrName,
java.lang.String attrValue)
Returns a list of nodes which have a String attribute with the supplied name and value. |
|
java.util.Set<java.lang.String> |
getNodesChildren(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs,
boolean acceptUndirected)
Get the children of multiple nodes. |
|
java.util.List<java.lang.String> |
getNodeShapeNames()
Get the names of the shapes that nodes can have. |
|
java.util.List<java.lang.String> |
getNodesIDs(java.lang.String networkID)
Get the rootgrah IDs of the provided nodes. |
|
java.util.List<java.lang.String> |
getNodesNeighbors(java.lang.String networkId,
java.util.Vector<java.lang.String> nodeIDS)
Get the neighbords of a list of nodes in a network. |
|
java.util.List<java.lang.String> |
getNodesNeighbors(java.util.Vector<java.lang.String> nodeIDs)
Get the neighbors of a list of nodes in the current network. |
|
java.util.Set<java.lang.String> |
getNodesParents(java.util.List<java.lang.String> nodeIDs,
boolean acceptUndirected)
|
|
java.util.Set<java.lang.String> |
getNodesParents(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs,
boolean acceptUndirected)
|
|
int |
getNotExistsCode()
Get the error number for the not exists errors. |
|
int |
getNotFoundCode()
Get the error number for not found errors. |
|
java.util.List<java.lang.String> |
getSelectedEdges()
Get the selected edges of the current network. |
|
java.util.List<java.lang.String> |
getSelectedEdges(java.lang.String networkID)
Get the selected edges in a network. |
|
java.util.List<java.lang.String> |
getSelectedNodes()
Get a list of selected nodes in the current network. |
|
java.util.List<java.lang.String> |
getSelectedNodes(java.lang.String networkID)
Get a list of selected nodes. |
|
java.util.List<java.lang.String> |
getShapeNames()
Get a list of names of possible shapes. |
|
int |
getTotalNodeCount()
Get the number of nodes present in the current instance of Cytoscape. |
|
java.util.Collection |
getUniqueNodeAttributes(java.lang.String attrName)
|
|
java.util.Collection |
getUniqueNodeAttributes(java.lang.String attrName,
java.lang.String networkID)
|
|
java.util.List<java.lang.Double> |
getViewCoordinates(java.lang.String networkID)
|
|
java.util.Vector<java.lang.String> |
getVisualBypassNames()
Get a list of visual bypass names. |
|
java.util.List<java.lang.String> |
getVisualStyleModifiables()
Retrieves all the names of the attributes that can be set in a VisualStyle. |
|
java.util.List<java.lang.String> |
getVisualStyleNames()
Lists all the available visual styles. |
|
int |
getWrongTypeCode()
Get the error number for wrong type errors. |
|
double |
getZoom(java.lang.String networkID)
Get the current zoom level of a networkview. |
|
boolean |
hasCurrentNetwork()
Check if there is a current network. |
|
boolean |
hasEdgeAttribute(java.lang.String edgeID,
java.lang.String attrName)
Check if the attribute exists in a certain edge. |
|
boolean |
hasNetworkAttribute(java.lang.String networkID,
java.lang.String attrName)
Check if the attribute exists for a certain network. |
|
boolean |
hasNodeAttribute(java.lang.String nodeID,
java.lang.String attrName)
Check if the attribute exists for a certain node. |
|
boolean |
hideAll()
Hide all nodes and edges in the current network. |
|
boolean |
hideAll(java.lang.String networkID)
Hide all nodes and edges. |
|
boolean |
hideAllEdges()
Hide all edges in the current network. |
|
boolean |
hideAllEdges(java.lang.String networkid)
Hide all the edges in a network. |
|
boolean |
hideAllNodes(java.lang.String networkID)
Hide all nodes in a network. |
|
boolean |
hideEdge(java.lang.String networkid,
java.lang.String edgeID)
Hide an edge in a network. |
|
boolean |
hideNode(java.lang.String nodeid)
Hide one node in the current network. |
|
boolean |
hideNode(java.lang.String networkid,
java.lang.String nodeid)
Hide one node in a network. |
|
boolean |
hidePanel(java.lang.String panelName)
Hide a panel in Cytoscape. |
|
boolean |
hideSelectedEdges()
Hide the selected edges in the current network. |
|
boolean |
hideSelectedEdges(java.lang.String networkID)
Hide the selected edges in a network. |
|
boolean |
hideSelectedNodes()
Hide the selected nodes in the current network. |
|
boolean |
hideSelectedNodes(java.lang.String networkID)
Hide the selected nodes in a network. |
|
boolean |
invertEdgeSelection(java.lang.String networkID)
Invert the edge selection. |
|
boolean |
invertNodeSelection(java.lang.String networkID)
Invert the node selection. |
|
boolean |
isNodeSelected(java.lang.String nodeID)
Check whether a node is selected in the current network. |
|
boolean |
isNodeSelected(java.lang.String networkID,
java.lang.String nodeID)
Check whether a node is selected. |
|
static java.util.List<java.lang.String> |
listAttributeTypes()
Method to list all the available types of attributes. |
|
boolean |
networkExists(java.lang.String networkID)
Checks if a network exists. |
|
java.util.ArrayList<java.lang.Boolean> |
networksHaveAttribute(java.lang.String name,
java.util.Vector<java.lang.String> ids)
Check if a list of networks have a particular attribute. |
|
boolean |
nodeExists(java.lang.String networkID,
java.lang.String nodeID)
Checks if a node is present in a network. |
|
boolean |
nodePassthroughMapper(java.lang.String attrName,
java.lang.String property,
java.lang.String def)
Deprecated. Use createPassthroughMapper instead. |
|
java.util.ArrayList<java.lang.Boolean> |
nodesHaveAttribute(java.lang.String name,
java.util.Vector<java.lang.String> ids)
Check if a list of nodes have a particular attribute. |
|
boolean |
overrideNodeVizAttribute(java.util.Map<java.lang.String,java.lang.String> nodeValues,
java.lang.String attrName)
Override the visual attribute for a number of nodes. |
|
boolean |
overrideNodeVizAttribute(java.lang.String nodeID,
java.lang.String attrName,
java.lang.String value)
Override a visual attribute of a node by some value. |
|
boolean |
performDefaultLayout()
Performs the default cytoscape layout on the current network, usually gridLayout. |
|
boolean |
performDefaultLayout(java.lang.String networkID)
Performs the default layout (usually grid) on the provided network. |
|
boolean |
performLayout(java.lang.String layoutName)
Performs the layout on the current network. |
|
boolean |
performLayout(java.lang.String networkID,
java.lang.String layoutName)
Performs the layout on the provided network. |
|
boolean |
raiseNetworkView(java.lang.String networkID)
Raise a network view to the top of the Cytoscape window. |
|
boolean |
redraw()
Redraws the networkview of the current network. |
|
boolean |
redraw(java.lang.String networkID)
Redraws a networkview. |
|
boolean |
removeEdge(java.lang.String edgeID)
Remove an edge from the current network. |
|
boolean |
removeEdge(java.lang.String networkID,
java.lang.String edgeID)
Remove an edge from a network. |
|
boolean |
removeNode(java.lang.String nodeID)
Remove a node from the current network. |
|
boolean |
removeNode(java.lang.String networkId,
java.lang.String nodeID)
Remove a node from a network. |
|
boolean |
removeSelectedEdges(java.lang.String networkID,
boolean set_remove)
Remove the selected edges from a network. |
|
boolean |
removeSelectedNodes(java.lang.String networkID,
boolean set_remove)
Remove the selected nodes. |
|
boolean |
resetRootGraph()
Method for resetting the rootgraph. |
|
boolean |
resizeNetworkView(java.lang.String networkID,
int width,
int height)
Resize a network view. |
|
boolean |
saveNetwork(java.lang.String networkID,
java.lang.String filename)
Save a network to a GML file. |
|
boolean |
saveSessionAsCys(java.lang.String filename)
|
|
boolean |
selectEdge(java.lang.String networkID,
java.lang.String edgeName)
Select an edge in a network. |
|
boolean |
selectEdges(java.lang.String networkID,
java.util.Vector<java.lang.String> edgeNames)
Select multiple edges in a network. |
|
boolean |
selectNode(java.lang.String nodeName)
Select a single node in the current network. |
|
boolean |
selectNode(java.lang.String networkID,
java.lang.String nodeID)
Add a node to the selection. |
|
boolean |
selectNodes(java.util.List<java.lang.String> nodeNames)
Select a number of nodes in the current network, clears the previous selection. |
|
boolean |
selectNodes(java.lang.String networkID,
java.util.List<java.lang.String> nodeNames)
Select a number of nodes, clears the previous selection. |
|
boolean |
selectNodes(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs,
boolean keepSelection,
boolean forgive)
Select a number of nodes. |
|
boolean |
selectNodes(java.lang.String networkID,
java.lang.String nodeName)
Select a single node. |
|
boolean |
selectNodes(java.util.Vector<java.lang.String> nodeIDs)
Add multiple nodes to the selection in the current network. |
|
boolean |
setCenter(java.lang.String networkID,
double x,
double y)
Set the center of a view. |
|
boolean |
setContinuousEdgeColorRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String minColor,
java.lang.String midColor,
java.lang.String maxColor,
double minValue,
double midValue,
double maxValue)
|
|
boolean |
setCurrentNetwork(java.lang.String networkID)
Sets the current network. |
|
boolean |
setDefaultBackgroundColor(java.lang.String styleName,
java.lang.String color)
|
|
boolean |
setDefaultEdgeReverseSelectionColor(java.lang.String styleName,
java.lang.String color)
|
|
boolean |
setDefaultEdgeSelectionColor(java.lang.String styleName,
java.lang.String color)
|
|
boolean |
setDefaultNodeReverseSelectionColor(java.lang.String styleName,
java.lang.String color)
|
|
boolean |
setDefaultNodeSelectionColor(java.lang.String styleName,
java.lang.String color)
|
|
boolean |
setDefaultVizMapValue(java.lang.String styleName,
java.lang.String visualPropertyName,
java.lang.String value)
Set the default value for a visualProperty in one particular style. |
|
boolean |
setDiscreteNodeMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String styleProperty,
java.lang.String paramName,
java.util.Map<java.lang.String,java.lang.String> mapping)
|
|
boolean |
setDiscreteNodeMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String styleProperty,
java.lang.String paramName,
java.lang.String[] mappingKeys,
java.lang.String[] mappingValues)
|
|
boolean |
setDiscreteNodeShapeMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String defaultShape,
java.util.Map<java.lang.Object,java.lang.String> mapping,
boolean overWrite)
Deprecated. Use createDiscreteMapper |
|
boolean |
setDiscreteNodeShapeMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String defaultShape,
java.lang.Object[] values,
java.lang.String[] shapes,
boolean overWrite)
Sets the node-shape mapping for the provided network & style. |
|
boolean |
setDiscreteNodeShapeMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String defaultShape,
java.lang.Object[] values,
java.lang.String[] shapes,
boolean overWrite,
boolean redraw)
Sets the node-shape mapping for the provided network & style. |
|
boolean |
setEdgeColorRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String defaultColor,
java.util.List<java.lang.String> attributeValues,
java.util.List<java.lang.String> colors)
|
|
boolean |
setEdgeLineStyleRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String defaultStyle,
java.util.List<java.lang.String> attributeValues,
java.util.List<java.lang.String> lineStyles)
|
|
boolean |
setEdgeProperties(java.util.List<java.lang.String> edgeIDs,
java.util.List<java.lang.String> propertyNames,
java.util.List<java.lang.String> propertyValues)
Set the properties of a number of edges simultaneously. |
|
boolean |
setEdgeProperty(java.lang.String edgeid,
java.lang.String propertyName,
java.lang.String propertyValue)
Set a visual property for an edge to overwrite whatever the VizMapper is doing. |
|
boolean |
setEdgeSourceArrowRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String defaultStyle,
java.util.List<java.lang.String> attributeValues,
java.util.List<java.lang.String> arrows)
|
|
boolean |
setEdgeTargetArrowRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String defaultStyle,
java.util.List<java.lang.String> attributeValues,
java.util.List<java.lang.String> arrows)
|
|
boolean |
setLayoutPropertyValue(java.lang.String layoutName,
java.lang.String propertyName,
java.lang.String value)
Set one layout property value. |
|
boolean |
setLayoutPropertyValues(java.lang.String layoutName,
java.util.List<java.lang.String> names,
java.util.List<java.lang.String> values)
Alternative (R specific) version of the setLayoutPropertyValues function. |
|
boolean |
setLayoutPropertyValues(java.lang.String layoutName,
java.util.Map<java.lang.String,java.lang.String> values)
Set multiple layout property values at once. |
|
boolean |
setNetworkTitle(java.lang.String networkTitle)
Set the title of the current network. |
|
boolean |
setNetworkTitle(java.lang.String networkID,
java.lang.String networkTitle)
Set the title for the network with the provided ID. |
|
boolean |
setNetworkViewPosition(java.lang.String networkID,
int xpos,
int ypos)
Set the position of a network view. |
|
boolean |
setNodeBorderColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue)
Sets the node border color for the provided nodes. |
|
boolean |
setNodeBorderColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue,
boolean redraw)
Sets the node border color for the provided nodes. |
|
boolean |
setNodeFillColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue)
Sets the fill color for the provided nodes. |
|
boolean |
setNodeFillColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue,
boolean redraw)
Sets the fill color for the provided nodes. |
|
boolean |
setNodeLabel(java.lang.String networkid,
java.lang.String attrName,
java.lang.Object defaultValue,
java.lang.String visualStyleName)
|
|
boolean |
setNodeLabelColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue)
Sets the node label color for the provided nodes. |
|
boolean |
setNodeLabelColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue,
boolean redraw)
Sets the node label color for the provided nodes. |
|
boolean |
setNodePosition(java.lang.String networkID,
java.lang.String nodeID,
double x,
double y)
Set the position of a node (bypasses the layout algorithm). |
|
boolean |
setNodeProperties(java.util.List<java.lang.String> nodeIDs,
java.util.List<java.lang.String> propertyNames,
java.util.List<java.lang.String> propertyValues)
Set the properties of a number of nodes simultaneously. |
|
boolean |
setNodeProperty(java.lang.String nodeid,
java.lang.String propertyName,
java.lang.String propertyValue)
Set a visual property for a node to overwrite whatever the VizMapper is doing. |
|
boolean |
setNodeShape(java.lang.Object[] nodeIDs,
java.lang.String shape)
Sets the node shapes of the provided nodes in the current network. |
|
boolean |
setNodeShape(java.lang.String networkID,
java.lang.Object[] nodeIDs,
java.lang.String shapestr)
Sets the node shapes of the provided nodes in the provided network. |
|
boolean |
setNodeShapeRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String defaultShape,
java.util.List<java.lang.String> attributeValues,
java.util.List<java.lang.String> shapes)
|
|
boolean |
setNodeSizeLocked(java.lang.String styleName,
boolean locked)
Indicated whether the width and the height of a node should be locked. |
|
boolean |
setNodesPositions(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs,
java.util.List<java.lang.Double> xpos,
java.util.List<java.lang.Double> ypos)
Change the position of a number of nodes in a network. |
|
boolean |
setRPCLogLevel(java.lang.String l)
Logger |
|
boolean |
setSelectedNodes(java.lang.String networkID,
java.util.Vector<java.lang.String> nodeIDs,
boolean forgive)
Set the selected nodes for a network. |
|
boolean |
setSelectedNodes(java.util.Vector<java.lang.String> nodeIDs)
Set the selected nodes of a network. |
|
boolean |
setSelectedNodes(java.util.Vector<java.lang.String> nodeids,
boolean forgive)
Set the selected nodes of the current network. |
|
boolean |
setShowGraphicsDetails(boolean flag)
|
|
boolean |
setShowGraphicsDetails(java.lang.String networkID,
boolean flag)
|
|
boolean |
setStatusBarMessage(java.lang.String msg)
Display a message in the Cytoscape status bar. |
|
boolean |
setToolTipDismissDelay(int dismissDelay)
Set the time out for a tool tip to disappear. |
|
boolean |
setToolTipInitialDelay(int initialDelay)
Set the time to wait before a tool tip appears. |
|
boolean |
setVisualStyle(java.lang.String name)
Set the current VisualStyle. |
|
boolean |
setZoom(java.lang.String networkID,
double zoom)
Set the zoom level for a network. |
|
boolean |
showMessage(java.lang.String message)
Shows a message in a JOptionPane and writes that same message to stdout. |
|
java.lang.String |
test()
Minimal method to test if the connection is working. |
|
java.util.List<java.lang.String> |
trait_names()
Function which returns all the function names. |
|
boolean |
unhideAll()
Restore all nodes and edges in the current network. |
|
boolean |
unhideAll(java.lang.String networkID)
Unhide all nodes and edges in a network. |
|
boolean |
unhideAllEdges()
Unhide all edges in the current network. |
|
boolean |
unhideAllEdges(java.lang.String networkID)
Unhide all edges in a network. |
|
boolean |
unhideAllNodes()
Unhide all nodes in the current network. |
|
boolean |
unhideAllNodes(java.lang.String networkID)
Unhide all nodes in a network. |
|
boolean |
unhideNode(java.lang.String nodeid)
Unhide a node in the current network. |
|
boolean |
unhideNode(java.lang.String networkid,
java.lang.String nodeid)
Unhide a node in a network. |
|
java.lang.String |
version()
Returns a string representing the version of the plugin. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CytoscapeRPCCallHandler()
| Method Detail |
|---|
public java.lang.String version()
public java.lang.String cytoscapeVersion()
public java.lang.String getCytoscapeVersion()
public java.lang.String test()
public java.util.List<java.lang.String> getShapeNames()
public java.util.List<java.lang.String> getFontFaces()
public java.util.Vector<java.lang.String> getVisualBypassNames()
public boolean showMessage(java.lang.String message)
message - Message text you want to display.
public int getNotFoundCode()
public int getNotExistsCode()
public int getWrongTypeCode()
public int getInputArgMismatchCode()
public java.util.List<java.lang.String> _getAttributeNames()
public java.util.List<java.lang.String> trait_names()
public final java.lang.String getFunctions()
public boolean deleteNodeByPassAttr(java.lang.String type)
type - String representing the type of attribute that was
overwritten and should now be deleted. Name should be written in
uppercase and spaces should be converted to underscores.
public boolean hasCurrentNetwork()
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getNetworkList()
public java.lang.String createNetwork(java.lang.String title)
title - The title of the new network to be created.
public java.lang.String createNetwork(java.lang.String title,
boolean createView)
title - Title of the network.createView - Whether to also create a view.
public java.lang.String createNetworkFromSelection(java.lang.String networkID,
java.lang.String networkName)
throws org.apache.xmlrpc.XmlRpcException
networkID - The identifier of the source network.networkName - Name of the new network.
org.apache.xmlrpc.XmlRpcException
public boolean hideAll(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where all nodes and edges should be
hidden.
org.apache.xmlrpc.XmlRpcException
public boolean hideAll()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean unhideAll(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where all nodes and edges should be
restored.
org.apache.xmlrpc.XmlRpcException
public boolean unhideAll()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean clearSelection(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network to clear the selection of.
org.apache.xmlrpc.XmlRpcException
public boolean clearSelection()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean createNetworkView(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - the network ID of the network that should be used as
the basis for the view.
org.apache.xmlrpc.XmlRpcException - when network cannot be found.
public boolean closeNetworkView(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network.
org.apache.xmlrpc.XmlRpcExceptionpublic boolean closeAllNetworkViews()
public boolean destroyNetwork(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network that should be destroyed.
org.apache.xmlrpc.XmlRpcException - when the network does not exist.
public java.util.Map<java.lang.String,java.lang.String> getCurrentNetworkProperties()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getCurrentNetworkIndex()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException - when there is no current network.
public java.lang.String getNetworkID()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getNetworkTitle()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException - when there is no current network.public int getNetworkCount()
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getAllNetworks()
public java.lang.String getNetworkTitle(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network.
org.apache.xmlrpc.XmlRpcException - when there is no network with the provided
network id.
public boolean setCurrentNetwork(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - id of the network you want to set as current network.
org.apache.xmlrpc.XmlRpcException - when there is no network with the provided
network id.
public boolean setNetworkTitle(java.lang.String networkTitle)
throws org.apache.xmlrpc.XmlRpcException
networkTitle - The title you want to give to the current network.
org.apache.xmlrpc.XmlRpcException - When no current network is available.
public boolean setNetworkTitle(java.lang.String networkID,
java.lang.String networkTitle)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network for which the name should be changed.networkTitle - the title the network should have.
org.apache.xmlrpc.XmlRpcException - when the network does not exist.public boolean networkExists(java.lang.String networkID)
networkID - ID of the network you want to check for existence.
public boolean setShowGraphicsDetails(boolean flag)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean setShowGraphicsDetails(java.lang.String networkID,
boolean flag)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcExceptionpublic int countAllNodes()
public int countNodes()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public int countNodes(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - the ID of the network of which the nodes should be
counted.
org.apache.xmlrpc.XmlRpcException
public int countSelectedNodes(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network to count the selected nodes in.
org.apache.xmlrpc.XmlRpcException
public int countSelectedNodes()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean hideSelectedNodes(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where the selected nodes should be
hidden.
org.apache.xmlrpc.XmlRpcException
public boolean hideSelectedNodes()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getNodesIDs(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network to get the nodes from.
org.apache.xmlrpc.XmlRpcException
public java.util.Vector<java.lang.String> getNodes(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - The ID of the network you want the node ids from.
org.apache.xmlrpc.XmlRpcException - when there is no network with the provided
network id.
public java.util.Vector<java.lang.String> getNodes()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException - when there is no current network.
public boolean isNodeSelected(java.lang.String networkID,
java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network.nodeID - node identifier.
org.apache.xmlrpc.XmlRpcException
public boolean isNodeSelected(java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
nodeID - identifier of the node.
org.apache.xmlrpc.XmlRpcException
public boolean clearNodeSelection(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where the node selection should be
cleared.
org.apache.xmlrpc.XmlRpcException
public boolean clearNodeSelection()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean selectNodes(java.lang.String networkID,
java.lang.String nodeName)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to select the node in.nodeName - name of the node to select.
org.apache.xmlrpc.XmlRpcException
public boolean selectNode(java.lang.String nodeName)
throws org.apache.xmlrpc.XmlRpcException
nodeName - name of the node to select.
org.apache.xmlrpc.XmlRpcException
public boolean selectNodes(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs,
boolean keepSelection,
boolean forgive)
throws org.apache.xmlrpc.XmlRpcException
networkID - nodeIDs - keepSelection - forgive -
org.apache.xmlrpc.XmlRpcException
public boolean selectNodes(java.lang.String networkID,
java.util.List<java.lang.String> nodeNames)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to select the nodes in.nodeNames - Names of the nodes to select.
org.apache.xmlrpc.XmlRpcException
public boolean selectNodes(java.util.List<java.lang.String> nodeNames)
throws org.apache.xmlrpc.XmlRpcException
nodeNames - Names of the nodes to select.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getSelectedNodes(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network to get the selected node IDs
from.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getSelectedNodes()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean setSelectedNodes(java.lang.String networkID,
java.util.Vector<java.lang.String> nodeIDs,
boolean forgive)
throws org.apache.xmlrpc.XmlRpcException
networkID - The ID of the network where the selection should be
changed.nodeIDs - The IDs of the nodes that should be selected.forgive - If true the algorithm continues selecting nodes even when
ids are supplied which are not found. If not it returns an XMLRPC error.
org.apache.xmlrpc.XmlRpcException
public boolean setSelectedNodes(java.util.Vector<java.lang.String> nodeIDs)
throws org.apache.xmlrpc.XmlRpcException
nodeIDs -
org.apache.xmlrpc.XmlRpcException
public boolean invertNodeSelection(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to invert the node selection
in.
org.apache.xmlrpc.XmlRpcException
public boolean removeSelectedNodes(java.lang.String networkID,
boolean set_remove)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to remove the nodes from.set_remove - removes the nodes from all of Cytoscape, not only from
the provided network.
org.apache.xmlrpc.XmlRpcException
public boolean nodeExists(java.lang.String networkID,
java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
networkID - Network in which the node should be present.nodeID - Node identifier.
org.apache.xmlrpc.XmlRpcException - When the network does not exist.public int getTotalNodeCount()
public java.lang.String createNode(java.lang.String networkID,
java.lang.String identifier)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where the node should be created.identifier - Identifier of the node.
org.apache.xmlrpc.XmlRpcException
public java.lang.String createNode(java.lang.String identifier)
throws org.apache.xmlrpc.XmlRpcException
identifier - Identifier of the node.
org.apache.xmlrpc.XmlRpcException
public boolean createNodes(java.lang.String networkID,
java.util.List identifiers)
throws org.apache.xmlrpc.XmlRpcException
networkID - Network to which the nodes should be added.identifiers - Identifiers of the nodes that should be created.
org.apache.xmlrpc.XmlRpcException
public boolean createNodes(java.util.List identifiers)
throws org.apache.xmlrpc.XmlRpcException
identifiers - Identifers of the nodes that need to be created.
org.apache.xmlrpc.XmlRpcException - when there is no current network.
public boolean createNodesFromVector(java.lang.String networkID,
java.util.Vector identifiers)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to add the nodes to.identifiers - Vector with node identifiers.
org.apache.xmlrpc.XmlRpcException
public boolean createNodesFromVector(java.util.Vector identifiers)
throws org.apache.xmlrpc.XmlRpcException
identifiers - Vector with node identifiers.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getNodeNeighbors(java.lang.String networkID,
java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
networkID - network identifier.nodeID - node identifier.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getNodeNeighbors(java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
nodeID - identifier of the node.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getNodesNeighbors(java.lang.String networkId,
java.util.Vector<java.lang.String> nodeIDS)
throws org.apache.xmlrpc.XmlRpcException
networkId - network identifier.nodeIDS - list of node identifiers.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getNodesNeighbors(java.util.Vector<java.lang.String> nodeIDs)
throws org.apache.xmlrpc.XmlRpcException
nodeIDs - list of node identifiers.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getNodeChildren(java.lang.String networkID,
java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
networkID - nodeID -
org.apache.xmlrpc.XmlRpcException
public java.util.Set<java.lang.String> getNodesChildren(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs,
boolean acceptUndirected)
throws org.apache.xmlrpc.XmlRpcException
networkID - nodeIDs - acceptUndirected -
org.apache.xmlrpc.XmlRpcException
public java.util.Set<java.lang.String> getNodesParents(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs,
boolean acceptUndirected)
throws org.apache.xmlrpc.XmlRpcException
networkID - nodeIDs - acceptUndirected -
org.apache.xmlrpc.XmlRpcException
public java.util.Set<java.lang.String> getNodesParents(java.util.List<java.lang.String> nodeIDs,
boolean acceptUndirected)
throws org.apache.xmlrpc.XmlRpcException
nodeIDs - acceptUndirected -
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getConnectedEdges(java.lang.String networkID,
java.lang.String nodeID1,
java.lang.String nodeID2)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network where the connections should
be in.nodeID1 - Identifier of node 1.nodeID2 - Identifier of node 2.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getConnectedEdges(java.lang.String nodeID1,
java.lang.String nodeID2)
throws org.apache.xmlrpc.XmlRpcException
nodeID1 - Identifier of node 1.nodeID2 - Identifier of node 2.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getConnectedEdges(java.lang.String networkID,
java.util.Vector<java.lang.String> nodeIDs)
throws org.apache.xmlrpc.XmlRpcException
networkID - nodeIDs -
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getConnectedEdges(java.util.Vector<java.lang.String> nodeIDs)
throws org.apache.xmlrpc.XmlRpcException
nodeIDs -
org.apache.xmlrpc.XmlRpcException
public boolean removeNode(java.lang.String networkId,
java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
networkId - network identifier.nodeID - node identifier.
org.apache.xmlrpc.XmlRpcException
public boolean removeNode(java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
nodeID - node identifier.
org.apache.xmlrpc.XmlRpcException
public boolean addNodesToNetwork(java.lang.String networkID,
java.util.List nodeIDs,
boolean forgive)
throws org.apache.xmlrpc.XmlRpcException
networkID - the ID of the network where the nodes should be added
to.nodeIDs - IDs of the nodes you want to add.forgive - Whether to continue when a node does not exist.
org.apache.xmlrpc.XmlRpcException - when the network does not exist or when the
forgive parameter is set to false and a node is not present in Cytoscape.
public boolean addNodesToNetwork(java.util.List nodeIDs,
boolean forgive)
throws org.apache.xmlrpc.XmlRpcException
nodeIDs - IDs of the nodes you want to add.forgive - whether to continue when a node does not exist.
org.apache.xmlrpc.XmlRpcException - when there is no current network or when the
forgive parameter is set to false and a node is not present in
Cytoscape.
public boolean selectNode(java.lang.String networkID,
java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network to selected the node in.nodeID - ID of the node to select.
org.apache.xmlrpc.XmlRpcException
public boolean selectNodes(java.util.Vector<java.lang.String> nodeIDs)
throws org.apache.xmlrpc.XmlRpcException
nodeIDs - List of node identifiers.
org.apache.xmlrpc.XmlRpcException
public boolean deselectNode(java.lang.String networkID,
java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network to deselect the node in.nodeID - ID of the node to deselect.
org.apache.xmlrpc.XmlRpcException
public java.lang.String getNodeAttributeType(java.lang.String attrName)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attribute.
org.apache.xmlrpc.XmlRpcException - when the attribute does not exist.
public java.util.List<java.lang.String> getNodesByStringAttr(java.lang.String attrName,
java.lang.String attrValue)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attribute that the search is based on.attrValue - value of the attribute that the search uses.
org.apache.xmlrpc.XmlRpcException
public boolean setSelectedNodes(java.util.Vector<java.lang.String> nodeids,
boolean forgive)
throws org.apache.xmlrpc.XmlRpcException
nodeids - IDs of the nodes that should be selected.forgive - If set the program skips over IDs that do not have a
corresponding node in the current network.
org.apache.xmlrpc.XmlRpcException - when there is not current network or when the
forgive parameter is set to false and a node is not present in the
network.public java.util.Vector<java.lang.String> getAllNodes()
public java.util.List<java.lang.String> getNodeShapeNames()
public java.util.List<java.lang.String> getNodeColorPropertyNames()
public boolean setNodeShape(java.lang.Object[] nodeIDs,
java.lang.String shape)
throws org.apache.xmlrpc.XmlRpcException
discreteMapper(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map) .
nodeIDs - shape -
org.apache.xmlrpc.XmlRpcExceptioncreateDiscreteMapper(
java.lang.String, java.lang.String, java.lang.String,
java.lang.String, java.util.Map)
public boolean setNodeShape(java.lang.String networkID,
java.lang.Object[] nodeIDs,
java.lang.String shapestr)
throws org.apache.xmlrpc.XmlRpcException
createDiscreteMapper(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map) .
networkID - nodeIDs - shapestr -
org.apache.xmlrpc.XmlRpcExceptioncreateDiscreteMapper(
java.lang.String, java.lang.String, java.lang.String,
java.lang.String, java.util.Map)
public boolean setNodeFillColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue)
throws org.apache.xmlrpc.XmlRpcException
networkID - network where the nodes should be changed.nodeIDs - ids of the nodes.red - Red component.green - Green component.blue - Blue component.
org.apache.xmlrpc.XmlRpcExceptiondiscreteMapper(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map)
public boolean setNodeFillColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue,
boolean redraw)
throws org.apache.xmlrpc.XmlRpcException
networkID - network where the nodes should be changed.nodeIDs - ids of the nodes.red - Red component.green - Green component.blue - Blue component.redraw -
org.apache.xmlrpc.XmlRpcExceptiondiscreteMapper(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map)
public boolean setNodeBorderColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where to change the colornodeIDs - IDs of the nodes to change the color ofred - Red component [0..255].green - Green component [0..255].blue - Blue component [0..255].
org.apache.xmlrpc.XmlRpcException - when the operation fails.
public boolean setNodeBorderColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue,
boolean redraw)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where to change the colornodeIDs - IDs of the nodes to change the color ofred - Red component [0..255].green - Green component [0..255].blue - Blue component [0..255].redraw -
org.apache.xmlrpc.XmlRpcException - when the operation fails.
public boolean setNodeLabelColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where to change the color.nodeIDs - IDs of the nodes to change.red - Red component [0..255].green - Green component [0..255].blue - Blue component [0..255].
org.apache.xmlrpc.XmlRpcException
public boolean setNodeLabelColor(java.lang.String networkID,
java.lang.Object[] nodeIDs,
int red,
int green,
int blue,
boolean redraw)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where to change the color.nodeIDs - IDs of the nodes to change.red - Red component [0..255].green - Green component [0..255].blue - Blue component [0..255].redraw -
org.apache.xmlrpc.XmlRpcException
public boolean overrideNodeVizAttribute(java.lang.String nodeID,
java.lang.String attrName,
java.lang.String value)
throws org.apache.xmlrpc.XmlRpcException
nodeID - ID of the node you want to set the attribute of.attrName - Name of the attribute.value - Value the attribute should get.
org.apache.xmlrpc.XmlRpcException - when something went wrong.
public boolean overrideNodeVizAttribute(java.util.Map<java.lang.String,java.lang.String> nodeValues,
java.lang.String attrName)
throws org.apache.xmlrpc.XmlRpcException
nodeValues - Map of attrName - name of the attribute to set.
org.apache.xmlrpc.XmlRpcException
public boolean hideAllNodes(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of hte network in which you want to hide
all nodes
org.apache.xmlrpc.XmlRpcException
public boolean hideNode(java.lang.String nodeid)
throws org.apache.xmlrpc.XmlRpcException
nodeid - ID of the node.
org.apache.xmlrpc.XmlRpcException
public boolean hideNode(java.lang.String networkid,
java.lang.String nodeid)
throws org.apache.xmlrpc.XmlRpcException
networkid - ID of the network where the node should be hidden.nodeid - ID of the node.
org.apache.xmlrpc.XmlRpcException
public boolean unhideNode(java.lang.String nodeid)
throws org.apache.xmlrpc.XmlRpcException
nodeid - list of nodeIDs.
org.apache.xmlrpc.XmlRpcException
public boolean unhideNode(java.lang.String networkid,
java.lang.String nodeid)
throws org.apache.xmlrpc.XmlRpcException
networkid - ID of the network where the nodes should be exposed.nodeid - list of nodeIDs.
org.apache.xmlrpc.XmlRpcException
public boolean unhideAllNodes(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where the nodes should be restored.
org.apache.xmlrpc.XmlRpcException
public boolean unhideAllNodes()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean setNodeProperty(java.lang.String nodeid,
java.lang.String propertyName,
java.lang.String propertyValue)
throws org.apache.xmlrpc.XmlRpcException
nodeid - ID of the node that should be changed.propertyName - name of the property.propertyValue - String representation of the property value.
org.apache.xmlrpc.XmlRpcException
public boolean setNodeProperties(java.util.List<java.lang.String> nodeIDs,
java.util.List<java.lang.String> propertyNames,
java.util.List<java.lang.String> propertyValues)
throws org.apache.xmlrpc.XmlRpcException
nodeIDs - list of node identifiers.propertyNames - list of property names.propertyValues - list of property values.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getAdjacentEdges(java.lang.String networkID,
java.lang.String nodeID)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to get the edges from.nodeID - node identifier.
org.apache.xmlrpc.XmlRpcException
public int countAllEdges()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public int countEdges()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public int countEdges(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - the ID of the network where the edges should be counted.
org.apache.xmlrpc.XmlRpcException
public int countSelectedEdges()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public int countSelectedEdges(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - the ID of the network where the selected edges should
be counted.
org.apache.xmlrpc.XmlRpcException
public boolean hideSelectedEdges(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where the selected edges should be
hidden.
org.apache.xmlrpc.XmlRpcException
public boolean hideSelectedEdges()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public java.lang.String createEdge(java.lang.String networkID,
java.lang.String from,
java.lang.String to,
java.lang.String type,
boolean directed)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where the edge should be added.from - identifier of the source node.to - identifier of the target node.type - the type of the relation.directed - whether the relation is directed.
org.apache.xmlrpc.XmlRpcException
public java.lang.String createEdge(java.lang.String from,
java.lang.String to,
java.lang.String type,
boolean directed)
throws org.apache.xmlrpc.XmlRpcException
from - identifier of the source node.to - identifier of the target node.type - type of the relation.directed - whether the relation is directed.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> createEdges(java.lang.String networkID,
java.util.List<java.lang.String> from,
java.util.List<java.lang.String> to,
java.util.List<java.lang.String> type,
java.util.List<java.lang.Boolean> directed,
boolean forgive)
throws org.apache.xmlrpc.XmlRpcException
networkID - Network to which you want to add the edges.from - List of node ids from which the edges startto - List of node ids to which the edges should go totype - List of types of the edgesdirected - forgive - Whether to continue adding edges when a node does not
exist
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> createEdges(java.util.List<java.lang.String> from,
java.util.List<java.lang.String> to,
java.util.List<java.lang.String> type,
java.util.List<java.lang.Boolean> directed,
boolean forgive)
throws org.apache.xmlrpc.XmlRpcException
from - List of node ids from which the edges startto - List of node ids to which the edges should go totype - List of types of the edgesdirected - forgive - Whether to continue adding edges when a node does not
exist
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> createEdgesFromVector(java.util.Vector sources,
java.util.Vector targets)
throws org.apache.xmlrpc.XmlRpcException
createEdges(java.lang.String, java.util.List, java.util.List, java.util.List, java.util.List, boolean) with same
parameters.
sources - Vector of source node ids.targets - Vector of target node ids.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> createEdgesFromVector(java.lang.String networkID,
java.util.Vector sources,
java.util.Vector targets)
throws org.apache.xmlrpc.XmlRpcException
createEdges(java.lang.String, java.util.List, java.util.List, java.util.List, java.util.List, boolean) with same
parameters.
networkID - ID of the network to create the edges in.sources - Vector of Strings with the source node IDs.targets - Vector of Strings with the target node IDS.
org.apache.xmlrpc.XmlRpcException
public java.util.Vector<java.lang.String> createEdges(java.util.Vector<java.lang.String> sources,
java.util.Vector<java.lang.String> targets)
throws org.apache.xmlrpc.XmlRpcException
sources - List of source node IDs.targets - List of target node IDs.
org.apache.xmlrpc.XmlRpcException
public java.util.Vector<java.lang.String> createEdges(java.lang.String networkID,
java.util.Vector<java.lang.String> sources,
java.util.Vector<java.lang.String> targets)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network to create the edges in.sources - List of source node IDs.targets - List of target node IDs.
org.apache.xmlrpc.XmlRpcException
public boolean removeEdge(java.lang.String networkID,
java.lang.String edgeID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network to remove the edge from.edgeID - identifier of the edge.
org.apache.xmlrpc.XmlRpcException
public boolean removeEdge(java.lang.String edgeID)
throws org.apache.xmlrpc.XmlRpcException
edgeID - identifier of the edge.
org.apache.xmlrpc.XmlRpcException
public boolean clearEdgeSelection(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID -
org.apache.xmlrpc.XmlRpcException
public boolean clearEdgeSelection()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getEdges(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getEdges()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getAllEdges()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getEdgeSourceNodes(java.lang.String networkID,
java.util.Vector<java.lang.String> edgeNames)
throws org.apache.xmlrpc.XmlRpcException
networkID - Network to search the edges in.edgeNames - names of the edges.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getEdgeTargetNodes(java.lang.String networkID,
java.util.Vector<java.lang.String> edgeNames)
throws org.apache.xmlrpc.XmlRpcException
networkID - Network to search the edges in.edgeNames - names of the edges.
org.apache.xmlrpc.XmlRpcException
public static java.util.List<java.lang.String> getChildConnectingEdges(java.util.List<java.lang.String> nodeIDs)
throws org.apache.xmlrpc.XmlRpcException
nodeIDs -
org.apache.xmlrpc.XmlRpcException
public static java.util.List<java.lang.String> getChildConnectingEdges(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs)
throws org.apache.xmlrpc.XmlRpcException
networkID - nodeIDs -
org.apache.xmlrpc.XmlRpcException
public java.lang.String getEdgeAttributeType(java.lang.String attrName)
throws org.apache.xmlrpc.XmlRpcException
attrName - The name of the attribute.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getSelectedEdges(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network to get the selected edges from.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getSelectedEdges()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean selectEdge(java.lang.String networkID,
java.lang.String edgeName)
throws org.apache.xmlrpc.XmlRpcException
networkID - edgeName -
org.apache.xmlrpc.XmlRpcException
public boolean selectEdges(java.lang.String networkID,
java.util.Vector<java.lang.String> edgeNames)
throws org.apache.xmlrpc.XmlRpcException
networkID - edgeNames -
org.apache.xmlrpc.XmlRpcException
public boolean invertEdgeSelection(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to invert the selection in.
org.apache.xmlrpc.XmlRpcException
public boolean removeSelectedEdges(java.lang.String networkID,
boolean set_remove)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to remove the edges from.set_remove - remove the edges from all of Cytoscape, not just the
provided network.
org.apache.xmlrpc.XmlRpcException
public boolean hideEdge(java.lang.String networkid,
java.lang.String edgeID)
throws org.apache.xmlrpc.XmlRpcException
networkid - ID of the network where the edge should be hidden.edgeID - identifier of the edge.
org.apache.xmlrpc.XmlRpcException
public boolean hideAllEdges(java.lang.String networkid)
throws org.apache.xmlrpc.XmlRpcException
networkid - ID of the network where the edges should be hidden.
org.apache.xmlrpc.XmlRpcException
public boolean hideAllEdges()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean unhideAllEdges(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network where the edges should be restored.
org.apache.xmlrpc.XmlRpcException
public boolean unhideAllEdges()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean setEdgeProperty(java.lang.String edgeid,
java.lang.String propertyName,
java.lang.String propertyValue)
throws org.apache.xmlrpc.XmlRpcException
edgeid - ID of the edge that should be changed.propertyName - name of the property.propertyValue - String representation of the property value.
org.apache.xmlrpc.XmlRpcException
public boolean setEdgeProperties(java.util.List<java.lang.String> edgeIDs,
java.util.List<java.lang.String> propertyNames,
java.util.List<java.lang.String> propertyValues)
throws org.apache.xmlrpc.XmlRpcException
edgeIDs - list of node identifiers.propertyNames - list of property names.propertyValues - list of property values.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getLineStyleNames()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> getArrowShapeNames()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcExceptionpublic static java.util.List<java.lang.String> listAttributeTypes()
public boolean hasEdgeAttribute(java.lang.String edgeID,
java.lang.String attrName)
edgeID - the identifier of the edge.attrName - the name of the attribute.
public boolean hasNodeAttribute(java.lang.String nodeID,
java.lang.String attrName)
nodeID - the node identifier.attrName - the name of the attribute.
public boolean hasNetworkAttribute(java.lang.String networkID,
java.lang.String attrName)
networkID - Identifier of the network.attrName - Name of the attribute.
public java.lang.Object getNodeAttribute(java.lang.String nodeID,
java.lang.String attrName)
throws org.apache.xmlrpc.XmlRpcException
nodeID - ID of the node.attrName - name of the attribute.
org.apache.xmlrpc.XmlRpcException
public java.util.Vector<java.lang.Object> getNodesAttributes(java.lang.String name,
java.util.Vector<java.lang.String> IDs)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - list of node identifiers.
org.apache.xmlrpc.XmlRpcExceptionpublic java.util.Map<java.lang.String,java.lang.Object> getNodeAttributes(java.lang.String nodeID)
nodeID - the node identifier.
public java.util.Vector<java.lang.Object> getNetworksAttributes(java.lang.String name,
java.util.Vector<java.lang.String> IDs)
throws org.apache.xmlrpc.XmlRpcException
name - Name of the attribute.IDs - List of network identifier.
org.apache.xmlrpc.XmlRpcExceptionpublic java.util.Map<java.lang.String,java.lang.Object> getNetworkAttributes(java.lang.String networkID)
networkID - Network identifier.
public java.lang.Object getEdgeAttribute(java.lang.String edgeID,
java.lang.String attrName)
throws org.apache.xmlrpc.XmlRpcException
edgeID - ID of the edge.attrName - name of the attribute.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.Object> getEdgesAttributes(java.lang.String attrName,
java.util.Vector<java.lang.String> ids)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attributeids - list of edge identifiers.
org.apache.xmlrpc.XmlRpcExceptionpublic java.util.Map<java.lang.String,java.lang.Object> getEdgeAttributes(java.lang.String edgeID)
edgeID - id of the edge.
public java.util.List<java.lang.String> getEdgeAttributeNames()
public java.util.List<java.lang.String> getNodeAttributeNames()
public java.util.List<java.lang.String> getNetworkAttributeNames()
public java.lang.String getNetworkAttributeType(java.lang.String attrName)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attribute.
org.apache.xmlrpc.XmlRpcException - when the attribute does not exist.
public java.util.Collection getUniqueNodeAttributes(java.lang.String attrName)
throws org.apache.xmlrpc.XmlRpcException
attrName - Name of the attribute.
org.apache.xmlrpc.XmlRpcException - when the attribute does not exist.
public java.util.Collection getUniqueNodeAttributes(java.lang.String attrName,
java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
attrName - Name of the attribute you want the unique instances of.networkID - ID of the network where the nodes should be in
org.apache.xmlrpc.XmlRpcException
public boolean addBooleanEdgeAttribute(java.lang.String name,
java.lang.String ID,
boolean value)
name - name of the attribute.ID - Identifier of the edge.value - Value of the attribute.
public boolean addBooleanNetworkAttribute(java.lang.String name,
java.lang.String ID,
boolean value)
name - name of the attribute.ID - Identifier of the network.value - Value of the attribute.
public boolean addBooleanNodeAttribute(java.lang.String name,
java.lang.String ID,
boolean value)
name - name of the attribute.ID - Identifier of the node.value - Value of the attribute.
public boolean addDoubleEdgeAttribute(java.lang.String name,
java.lang.String ID,
double value)
name - name of the attribute.ID - Identifier of the edge.value - Value of the attribute.
public boolean addDoubleNetworkAttribute(java.lang.String name,
java.lang.String ID,
double value)
name - name of the attribute.ID - Identifier of the network.value - Value of the attribute.
public boolean addDoubleNodeAttribute(java.lang.String name,
java.lang.String ID,
double value)
name - name of the attribute.ID - Identifier of the node.value - Value of the attribute.
public boolean addIntegerEdgeAttribute(java.lang.String name,
java.lang.String ID,
int value)
name - name of the attribute.ID - Identifier of the edge.value - Value of the attribute.
public boolean addIntegerNetworkAttribute(java.lang.String name,
java.lang.String ID,
int value)
name - name of the attribute.ID - Identifier of the network.value - Value of the attribute.
public boolean addIntegerNodeAttribute(java.lang.String name,
java.lang.String ID,
int value)
name - name of the attribute.ID - Identifier of the node.value - Value of the attribute.
public boolean addStringEdgeAttribute(java.lang.String name,
java.lang.String ID,
java.lang.String value)
name - name of the attribute.ID - Identifier of the edge.value - Value of the attribute.
public boolean addStringNetworkAttribute(java.lang.String name,
java.lang.String ID,
java.lang.String value)
name - name of the attribute.ID - Identifier of the network.value - Value of the attribute.
public boolean addStringNodeAttribute(java.lang.String name,
java.lang.String ID,
java.lang.String value)
name - name of the attribute.ID - Identifier of the node.value - Value of the attribute.
public boolean addBooleanEdgeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Boolean> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the edges.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addBooleanNetworkAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Boolean> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the networks.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addBooleanNodeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Boolean> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the nodes.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addDoubleEdgeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Double> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the edges.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addDoubleNetworkAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Double> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the networks.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addDoubleNodeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Double> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the nodes.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addIntegerEdgeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Integer> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the edges.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addIntegerNetworkAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Integer> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the networksr.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addIntegerNodeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.Integer> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the nodes.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addStringEdgeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.String> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the edges.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addStringNetworkAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.String> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the networks.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addStringNodeAttributes(java.lang.String name,
java.util.List<java.lang.String> IDs,
java.util.List<java.lang.String> values)
throws org.apache.xmlrpc.XmlRpcException
name - name of the attribute.IDs - identifiers of the nodes.values - values of the attributes.
org.apache.xmlrpc.XmlRpcException
public boolean addNodeAttribute(java.lang.String name,
java.lang.String type,
java.lang.String ID,
java.lang.Object value)
throws org.apache.xmlrpc.XmlRpcException
name - Name of the attribute.type - Type of the attribute.ID - ID of the node.value - value of the attribute.
org.apache.xmlrpc.XmlRpcException
public boolean addEdgeAttribute(java.lang.String name,
java.lang.String type,
java.lang.String ID,
java.lang.Object value)
throws org.apache.xmlrpc.XmlRpcException
name - Name of the attribute.type - Type of the attribute.ID - ID of the edge.value - value of the attribute.
org.apache.xmlrpc.XmlRpcException
public boolean addNetworkAttribute(java.lang.String name,
java.lang.String type,
java.lang.String networkID,
java.lang.Object value)
throws org.apache.xmlrpc.XmlRpcException
name - Name of the attribute.type - Type of the attribute.networkID - ID of the network.value - value of the attribute.
org.apache.xmlrpc.XmlRpcException
public java.util.ArrayList<java.lang.Boolean> nodesHaveAttribute(java.lang.String name,
java.util.Vector<java.lang.String> ids)
name - ids -
public java.util.ArrayList<java.lang.Boolean> edgesHaveAttribute(java.lang.String name,
java.util.Vector<java.lang.String> ids)
name - ids -
public java.util.ArrayList<java.lang.Boolean> networksHaveAttribute(java.lang.String name,
java.util.Vector<java.lang.String> ids)
name - ids -
public boolean addNodeAttributes(java.lang.String name,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> values,
boolean forgive)
throws org.apache.xmlrpc.XmlRpcException
name - Name that the attribute should have.type - The type of the attribute that you want to add.values - a map of forgive - whether non-existing nodes may be skipped.
org.apache.xmlrpc.XmlRpcException
public boolean addEdgeAttributes(java.lang.String name,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> values)
throws org.apache.xmlrpc.XmlRpcException
name - Name of the attribute.type - Type of the attribute (BOOLEAN, INTEGER, FLOATING, STRING).values - Map of org.apache.xmlrpc.XmlRpcException
public boolean addEdgeAttributes(java.lang.String name,
java.lang.String type,
java.util.Vector<java.lang.String> edgeIDs,
java.util.Vector<java.lang.Object> values)
throws org.apache.xmlrpc.XmlRpcException
name - Name of the attribute.type - Type of the attribute (BOOLEAN, INTEGER, FLOATING, STRING).edgeIDs - List of edge identifiersvalues - List of values for each edge
org.apache.xmlrpc.XmlRpcException
public boolean addNetworkAttributes(java.lang.String name,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> values)
throws org.apache.xmlrpc.XmlRpcException
name - Name of the attribute.type - Type of the attribute.values - Map of org.apache.xmlrpc.XmlRpcException
public boolean addNetworkAttributes(java.lang.String name,
java.lang.String type,
java.lang.String[] networkIDs,
java.lang.Object[] values)
throws org.apache.xmlrpc.XmlRpcException
name - Name of the attribute.type - Type of the attribute.networkIDs - List of IDsvalues - Values for each networkID
org.apache.xmlrpc.XmlRpcExceptionpublic boolean deleteEdgeAttribute(java.lang.String attrName)
attrName - Name of the attribute to delete.
public boolean deleteEdgeAttribute(java.lang.String ID,
java.lang.String name)
ID - ID of the edge.name - name of the attribute.
public boolean deleteNetworkAttribute(java.lang.String attrName)
attrName -
public boolean deleteNetworkAttribute(java.lang.String ID,
java.lang.String name)
ID - Identifier of the network.name - Name of the attribute.
public boolean deleteNodeAttribute(java.lang.String attrName)
attrName - Name of the attribute to delete.
public boolean deleteNodeAttribute(java.lang.String ID,
java.lang.String name)
ID - id of the node.name - name of the attribute.
public java.util.List<java.lang.String> getLayoutNames()
public java.util.Map<java.lang.String,java.lang.String> getLayoutNamesMapping()
public java.util.List<java.lang.String> getLayoutProperties(java.lang.String layoutName)
throws org.apache.xmlrpc.XmlRpcException
layoutName - Name of the layout.
org.apache.xmlrpc.XmlRpcException
public java.lang.String getLayoutPropertyType(java.lang.String layoutName,
java.lang.String propertyName)
throws org.apache.xmlrpc.XmlRpcException
layoutName - Name of the layout.propertyName - Name of the property.
org.apache.xmlrpc.XmlRpcException
public java.util.Map<java.lang.String,java.lang.String> getLayoutPropertyTypes(java.lang.String layoutName)
throws org.apache.xmlrpc.XmlRpcException
layoutName - Name of the layout.
org.apache.xmlrpc.XmlRpcException
public java.lang.Object getLayoutPropertyValue(java.lang.String layoutName,
java.lang.String propertyName)
throws org.apache.xmlrpc.XmlRpcException
layoutName - Name of the layout.propertyName - Name of the property.
org.apache.xmlrpc.XmlRpcException
public java.util.Map<java.lang.String,java.lang.Object> getLayoutPropertyValues(java.lang.String layoutName)
throws org.apache.xmlrpc.XmlRpcException
layoutName - Name of the layout.
org.apache.xmlrpc.XmlRpcException
public boolean setLayoutPropertyValue(java.lang.String layoutName,
java.lang.String propertyName,
java.lang.String value)
throws org.apache.xmlrpc.XmlRpcException
layoutName - Name of the layout.propertyName - Name of the layout.value - Value the property shoud get. Specify as string.
org.apache.xmlrpc.XmlRpcException
public boolean setLayoutPropertyValues(java.lang.String layoutName,
java.util.Map<java.lang.String,java.lang.String> values)
throws org.apache.xmlrpc.XmlRpcException
layoutName - Name of the layout.values - Map of org.apache.xmlrpc.XmlRpcException
public boolean setLayoutPropertyValues(java.lang.String layoutName,
java.util.List<java.lang.String> names,
java.util.List<java.lang.String> values)
throws org.apache.xmlrpc.XmlRpcException
layoutName - Name of the layout.names - Layout property names.values - Layout property values.
org.apache.xmlrpc.XmlRpcException
public boolean performDefaultLayout()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException - When there is no current network or the layout
algorithm did not work.
public boolean performDefaultLayout(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - The network id of the network you want to perform the
layout on.
org.apache.xmlrpc.XmlRpcException - When the requested network does not exist or the
layout algorithm did not complete.
public boolean performLayout(java.lang.String networkID,
java.lang.String layoutName)
throws org.apache.xmlrpc.XmlRpcException
networkID - The network id of the network you want to perform the
layout on.layoutName - Name of the layout you want to use. See
'getLayoutNames' for the names of the layouts that you can use.
org.apache.xmlrpc.XmlRpcException - when the requested network does not exist or the
layout algorithm could not be performed.
public boolean performLayout(java.lang.String layoutName)
throws org.apache.xmlrpc.XmlRpcException
layoutName - Name of the layout you want to use.
org.apache.xmlrpc.XmlRpcExceptionpublic java.util.List<java.lang.String> getVisualStyleNames()
public boolean copyVisualStyle(java.lang.String fromName,
java.lang.String toName)
throws org.apache.xmlrpc.XmlRpcException
fromName - Name of the original VisualStyle.toName - Name the new VisualStyle should get.
org.apache.xmlrpc.XmlRpcException - when the VisualStyle does not exist or the clone
operation cannot be performed.
public boolean deleteVisualStyle(java.lang.String styleName)
throws org.apache.xmlrpc.XmlRpcException
styleName - Name of the style to delete.
org.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getCurrentVisualStyle()
public boolean setVisualStyle(java.lang.String name)
throws org.apache.xmlrpc.XmlRpcException
name - Name of the VisualStyle that should be set as the current
VS.
org.apache.xmlrpc.XmlRpcExceptionpublic java.util.List<java.lang.String> getVisualStyleModifiables()
VisualPropertyType
public boolean setDiscreteNodeShapeMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String defaultShape,
java.lang.Object[] values,
java.lang.String[] shapes,
boolean overWrite)
throws org.apache.xmlrpc.XmlRpcException
public boolean setDiscreteNodeShapeMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String defaultShape,
java.lang.Object[] values,
java.lang.String[] shapes,
boolean overWrite,
boolean redraw)
throws org.apache.xmlrpc.XmlRpcException
public boolean setDiscreteNodeShapeMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String defaultShape,
java.util.Map<java.lang.Object,java.lang.String> mapping,
boolean overWrite)
throws org.apache.xmlrpc.XmlRpcException
networkID - the ID of the network where the mapping should be
performed.styleName - name of the style that should be changed.attrName - name of the attribute that holds the values that the
vizmapper should use to set the shape of the nodes.defaultShape - mapping - Map of overWrite - whether to delete custom set attributes.
org.apache.xmlrpc.XmlRpcException - When the network does not exist, the style does
not exist, one of the shapes does not exist or the attribute does not
exist.getNodeShapeNames(),
getUniqueNodeAttributes(java.lang.String),
discreteMapper(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map)
public boolean createContinuousNodeColorVisualStyle(java.lang.String attrName,
java.lang.String nodePropName,
java.lang.String minColorS,
java.lang.String midColorS,
java.lang.String maxColorS,
double minValue,
double midValue,
double maxValue)
throws org.apache.xmlrpc.XmlRpcException
attrName - nodePropName - minColorS - HTML color value for the smallest attribute valuemidColorS - HTML color value for the average attribute valuemaxColorS - HTML color value for the max attribute valueminValue - midValue - maxValue -
org.apache.xmlrpc.XmlRpcException
public boolean createContinuousEdgeVisualStyle(java.lang.String attrName,
java.lang.String edgePropName,
double maxEdgeWidth)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attribute to use.edgePropName - name of the visual property to adjust.maxEdgeWidth -
org.apache.xmlrpc.XmlRpcException
public boolean createContinuousNodeVisualStyle(java.lang.String attrName,
java.lang.String nodePropName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attribute to use for the mapping.nodePropName - property of the node to change.attrValues - attribute values to use.propValues - property values to set.
org.apache.xmlrpc.XmlRpcException
public boolean createContinuousNodeVisualStyle(java.lang.String attrName,
java.lang.String nodePropName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues,
boolean redraw)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attribute to use for the mapping.nodePropName - property of the node to change.attrValues - attribute values to use.propValues - property values to set.redraw -
org.apache.xmlrpc.XmlRpcException
public boolean createContinuousEdgeVisualStyle(java.lang.String attrName,
java.lang.String edgePropName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues)
throws org.apache.xmlrpc.XmlRpcException
attrName - Name of the attribute to use for the mapping.edgePropName - Name of the property to change.attrValues - Values of the attribute to create the mapping with.propValues - Values of the visual style property.
org.apache.xmlrpc.XmlRpcException
public boolean createContinuousEdgeVisualStyle(java.lang.String attrName,
java.lang.String edgePropName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues,
boolean redraw)
throws org.apache.xmlrpc.XmlRpcException
attrName - Name of the attribute to use for the mapping.edgePropName - Name of the property to change.attrValues - Values of the attribute to create the mapping with.propValues - Values of the visual style property.redraw -
org.apache.xmlrpc.XmlRpcException
public boolean createContinuousEdgeVisualStyle(java.lang.String attrName,
java.lang.String edgePropName,
double minValue,
double midValue,
double maxValue,
double maxEdgeWidth)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attribute to use in the mapping.edgePropName - visual property of the edges to change.minValue - lower bound for mapping.midValue - mind value for mapping.maxValue - upper bound for mapping.maxEdgeWidth - maximum edge width.
org.apache.xmlrpc.XmlRpcException
public boolean createContinuousMapper(java.lang.String styleName,
java.lang.String attrName,
java.lang.String propertyName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues)
throws org.apache.xmlrpc.XmlRpcException
styleName - name of the style to changeattrName - name of the attribute to usepropertyName - name of the visual property to setattrValues - attribute values used for interpolationpropValues - property values used for interpolation
org.apache.xmlrpc.XmlRpcException
public boolean createContinuousMapper(java.lang.String styleName,
java.lang.String attrName,
java.lang.String propertyName,
java.util.List<java.lang.Object> attrValues,
java.util.List<java.lang.Object> propValues,
boolean redraw)
throws org.apache.xmlrpc.XmlRpcException
styleName - name of the style to changeattrName - name of the attribute to usepropertyName - name of the visual property to setattrValues - attribute values used for interpolationpropValues - property values used for interpolationredraw -
org.apache.xmlrpc.XmlRpcException
public boolean setDefaultVizMapValue(java.lang.String styleName,
java.lang.String visualPropertyName,
java.lang.String value)
throws org.apache.xmlrpc.XmlRpcException
styleName - name of the style to adjust.visualPropertyName - name of the property.value - default value of the property.
org.apache.xmlrpc.XmlRpcException
public boolean redraw()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException - when there is no current network.
public boolean redraw(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - the ID of the network that we be redrawn.
org.apache.xmlrpc.XmlRpcException - when there is no network with the provided ID.
public boolean setDiscreteNodeMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String styleProperty,
java.lang.String paramName,
java.util.Map<java.lang.String,java.lang.String> mapping)
throws org.apache.xmlrpc.XmlRpcException
networkID - styleName - styleProperty - paramName - mapping -
org.apache.xmlrpc.XmlRpcException
public boolean setDiscreteNodeMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String styleProperty,
java.lang.String paramName,
java.lang.String[] mappingKeys,
java.lang.String[] mappingValues)
throws org.apache.xmlrpc.XmlRpcException
networkID - styleName - styleProperty - paramName - mappingKeys - mappingValues -
org.apache.xmlrpc.XmlRpcException
public boolean discreteMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String visualPropertyName,
java.lang.String defaultValue,
java.util.Map<java.lang.String,java.lang.String> mapping)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network that the discrete mapper should
work on.styleName - Name of the style that should be adjusted.attrName - Name of the attribute that should be used for the
mapping.visualPropertyName - Name of the property that should be changed.defaultValue - Default value for the visual property.mapping - org.apache.xmlrpc.XmlRpcExceptioncopyVisualStyle(
java.lang.String, java.lang.String),
createDiscreteMapper(
java.lang.String, java.lang.String, java.lang.String,
java.lang.String, java.util.Map)
public boolean createDiscreteMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String visualPropertyName,
java.lang.String defaultValue,
java.util.Map<java.lang.String,java.lang.String> mapping)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network that the discrete mapper should
work on.styleName - Name of the style that should be adjusted.attrName - Name of the attribute that should be used for the
mapping.visualPropertyName - Name of the property that should be changed.defaultValue - Default value for the visual property.mapping - org.apache.xmlrpc.XmlRpcExceptioncopyVisualStyle(
java.lang.String, java.lang.String)
public boolean createDiscreteMapper(java.lang.String styleName,
java.lang.String attrName,
java.lang.String visualPropertyName,
java.lang.String defaultValue,
java.util.Map<java.lang.String,java.lang.String> mapping)
throws org.apache.xmlrpc.XmlRpcException
styleName - Name of the style that should be adjusted.attrName - Name of the attribute that should be used for the
mapping.visualPropertyName - Name of the property that should be changed.defaultValue - Default value for the visual property.mapping - org.apache.xmlrpc.XmlRpcExceptioncopyVisualStyle(
java.lang.String, java.lang.String)
public boolean discreteMapper(java.lang.String networkID,
java.lang.String styleName,
java.lang.String attrName,
java.lang.String visualPropertyName,
java.lang.String defaultValue,
java.util.List values,
java.util.List props)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network on which to apply the visual
style.styleName - name of the style to change.attrName - name of the attribute to use for the mapping.visualPropertyName - name of the visual property to change.defaultValue - default value for the visual property.values - List of input values for the mapping (so values of the
attribute).props - List of visual property values.
org.apache.xmlrpc.XmlRpcExceptioncreateDiscreteMapper(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map)
public boolean createDiscreteMapper(java.lang.String styleName,
java.lang.String attrName,
java.lang.String visualPropertyName,
java.lang.String defaultValue,
java.util.List values,
java.util.List props)
throws org.apache.xmlrpc.XmlRpcException
styleName - name of the style to change.attrName - name of the attribute to use for the mapping.visualPropertyName - name of the visual property to change.defaultValue - default value for the visual property.values - List of input values for the mapping (so values of the
attribute).props - List of visual property values.
org.apache.xmlrpc.XmlRpcException
public boolean edgePassthroughMapper(java.lang.String attrName,
java.lang.String property,
java.lang.String def)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attribute to use.property - name of the property to set.def - Default value.
org.apache.xmlrpc.XmlRpcException
public boolean nodePassthroughMapper(java.lang.String attrName,
java.lang.String property,
java.lang.String def)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attribute to use.property - name of the property to set.def - Default value.
org.apache.xmlrpc.XmlRpcException
public boolean createPassthroughMapper(java.lang.String vizstyleName,
java.lang.String attrName,
java.lang.String property,
java.lang.String def)
throws org.apache.xmlrpc.XmlRpcException
vizstyleName - name of the visual style to changeattrName - name of the attribute to use.property - name of the property to set.def - Default value
org.apache.xmlrpc.XmlRpcException
public boolean createPassthroughMapper(java.lang.String vizstyleName,
java.lang.String attrName,
java.lang.String property,
java.lang.String def,
boolean redraw)
throws org.apache.xmlrpc.XmlRpcException
vizstyleName - name of the visual style to changeattrName - name of the attribute to use.property - name of the property to set.def - Default valueredraw -
org.apache.xmlrpc.XmlRpcException
public boolean createPassthroughMapper(java.lang.String attrName,
java.lang.String property,
java.lang.String def)
throws org.apache.xmlrpc.XmlRpcException
attrName - name of the attribute to use.property - name of the property to set.def - Default value
org.apache.xmlrpc.XmlRpcExceptionpublic boolean arrowMapper()
public boolean setNodeLabel(java.lang.String networkid,
java.lang.String attrName,
java.lang.Object defaultValue,
java.lang.String visualStyleName)
throws org.apache.xmlrpc.XmlRpcException
networkid - attrName - defaultValue - visualStyleName -
org.apache.xmlrpc.XmlRpcException
public java.lang.String getDefaultBackgroundColor(java.lang.String styleName)
throws org.apache.xmlrpc.XmlRpcException
styleName -
org.apache.xmlrpc.XmlRpcException
public boolean setDefaultBackgroundColor(java.lang.String styleName,
java.lang.String color)
throws org.apache.xmlrpc.XmlRpcException
styleName - color -
org.apache.xmlrpc.XmlRpcException
public java.lang.String getDefaultNodeSelectionColor(java.lang.String styleName)
throws org.apache.xmlrpc.XmlRpcException
styleName -
org.apache.xmlrpc.XmlRpcException
public boolean setDefaultNodeSelectionColor(java.lang.String styleName,
java.lang.String color)
throws org.apache.xmlrpc.XmlRpcException
styleName - color -
org.apache.xmlrpc.XmlRpcException
public java.lang.String getDefaultNodeReverseSelectionColor(java.lang.String styleName)
throws org.apache.xmlrpc.XmlRpcException
styleName -
org.apache.xmlrpc.XmlRpcException
public boolean setDefaultNodeReverseSelectionColor(java.lang.String styleName,
java.lang.String color)
throws org.apache.xmlrpc.XmlRpcException
styleName - color -
org.apache.xmlrpc.XmlRpcException
public java.lang.String getDefaultEdgeSelectionColor(java.lang.String styleName)
throws org.apache.xmlrpc.XmlRpcException
styleName -
org.apache.xmlrpc.XmlRpcException
public boolean setNodeSizeLocked(java.lang.String styleName,
boolean locked)
throws org.apache.xmlrpc.XmlRpcException
styleName - name of the style to change.locked -
org.apache.xmlrpc.XmlRpcException
public boolean setDefaultEdgeSelectionColor(java.lang.String styleName,
java.lang.String color)
throws org.apache.xmlrpc.XmlRpcException
styleName - color -
org.apache.xmlrpc.XmlRpcException
public java.lang.String getDefaultEdgeReverseSelectionColor(java.lang.String styleName)
throws org.apache.xmlrpc.XmlRpcException
styleName -
org.apache.xmlrpc.XmlRpcException
public boolean setDefaultEdgeReverseSelectionColor(java.lang.String styleName,
java.lang.String color)
throws org.apache.xmlrpc.XmlRpcException
styleName - color -
org.apache.xmlrpc.XmlRpcException
public boolean exportView(java.lang.String location,
java.lang.String type,
java.lang.Double scale)
throws org.apache.xmlrpc.XmlRpcException
location - Location where the file should be saved.type - Type of image to save.scale - Scale of the image.
org.apache.xmlrpc.XmlRpcException
public boolean saveNetwork(java.lang.String networkID,
java.lang.String filename)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to save.filename - location of the file to write to.
org.apache.xmlrpc.XmlRpcException
public boolean saveSessionAsCys(java.lang.String filename)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean fitContent(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network.
org.apache.xmlrpc.XmlRpcException
public boolean fitSelectedContent(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.Double> getCenter(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean setCenter(java.lang.String networkID,
double x,
double y)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network.x - x-positiony - y-position
org.apache.xmlrpc.XmlRpcException
public double getZoom(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID -
org.apache.xmlrpc.XmlRpcException
public boolean setZoom(java.lang.String networkID,
double zoom)
throws org.apache.xmlrpc.XmlRpcException
networkID - zoom -
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.Double> getViewCoordinates(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID -
org.apache.xmlrpc.XmlRpcException
public boolean exportView(java.lang.String networkID,
java.lang.String location,
java.lang.String type,
java.lang.Double scale)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network to export.location - location where the file should be saved.type - type of the file.scale - Scale of the image.
org.apache.xmlrpc.XmlRpcExceptionpublic java.util.List<java.lang.String> getNamespaceList()
public java.util.List<java.lang.String> getCommandList(java.lang.String namespace)
namespace - name of the namespace.
public java.util.Map<java.lang.String,java.lang.Object> executeCommand(java.lang.String namespace,
java.lang.String command,
java.util.Map arguments)
throws org.apache.xmlrpc.XmlRpcException
namespace - namespace the command is in.command - name of the command.arguments - key value pairs for the arguments that the command
takes.
org.apache.xmlrpc.XmlRpcException
public boolean hidePanel(java.lang.String panelName)
throws org.apache.xmlrpc.XmlRpcException
panelName - Name of the panel to hide.
org.apache.xmlrpc.XmlRpcException
public boolean dockPanel(java.lang.String panelName)
throws org.apache.xmlrpc.XmlRpcException
panelName - Name of the panel to dock.
org.apache.xmlrpc.XmlRpcException
public boolean floatPanel(java.lang.String panelName)
throws org.apache.xmlrpc.XmlRpcException
panelName - Name of the panel to float.
org.apache.xmlrpc.XmlRpcException
public boolean clearStatusBarMessage()
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean setStatusBarMessage(java.lang.String msg)
throws org.apache.xmlrpc.XmlRpcException
msg - Message to display.
org.apache.xmlrpc.XmlRpcException
public boolean setNodePosition(java.lang.String networkID,
java.lang.String nodeID,
double x,
double y)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network to change the position of the node in.nodeID - Identifier of the node.x - x-positiony - y-position
org.apache.xmlrpc.XmlRpcException
public boolean setNodesPositions(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs,
java.util.List<java.lang.Double> xpos,
java.util.List<java.lang.Double> ypos)
throws org.apache.xmlrpc.XmlRpcException
networkID - ID of the network to change the position of nodes in.nodeIDs - List of strings containing the node IDs.xpos - List of doubles with the x positions.ypos - List of doubles with the y positions.
org.apache.xmlrpc.XmlRpcException
public boolean resizeNetworkView(java.lang.String networkID,
int width,
int height)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network.width - new widthheight - new height
org.apache.xmlrpc.XmlRpcException
public boolean raiseNetworkView(java.lang.String networkID)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network to raise.
org.apache.xmlrpc.XmlRpcException
public boolean setNetworkViewPosition(java.lang.String networkID,
int xpos,
int ypos)
throws org.apache.xmlrpc.XmlRpcException
networkID - Identifier of the network.xpos - x positionypos - y position
org.apache.xmlrpc.XmlRpcExceptionpublic boolean setToolTipInitialDelay(int initialDelay)
initialDelay - time in milliseconds for the tool tip delay.
public boolean setToolTipDismissDelay(int dismissDelay)
dismissDelay - time in milliseconds that a tool tip is kept alive
after the mouse pointer has moved off of the target.
public boolean setRPCLogLevel(java.lang.String l)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public boolean setNodeShapeRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String defaultShape,
java.util.List<java.lang.String> attributeValues,
java.util.List<java.lang.String> shapes)
throws org.apache.xmlrpc.XmlRpcException
networkID - attributeName - defaultShape - attributeValues - shapes -
org.apache.xmlrpc.XmlRpcException
public boolean setEdgeLineStyleRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String defaultStyle,
java.util.List<java.lang.String> attributeValues,
java.util.List<java.lang.String> lineStyles)
throws org.apache.xmlrpc.XmlRpcException
networkID - attributeName - defaultStyle - attributeValues - lineStyles -
org.apache.xmlrpc.XmlRpcException
public boolean setEdgeTargetArrowRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String defaultStyle,
java.util.List<java.lang.String> attributeValues,
java.util.List<java.lang.String> arrows)
throws org.apache.xmlrpc.XmlRpcException
networkID - attributeName - defaultStyle - attributeValues - arrows -
org.apache.xmlrpc.XmlRpcException
public boolean setEdgeSourceArrowRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String defaultStyle,
java.util.List<java.lang.String> attributeValues,
java.util.List<java.lang.String> arrows)
throws org.apache.xmlrpc.XmlRpcException
networkID - attributeName - defaultStyle - attributeValues - arrows -
org.apache.xmlrpc.XmlRpcException
public boolean setContinuousEdgeColorRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String minColor,
java.lang.String midColor,
java.lang.String maxColor,
double minValue,
double midValue,
double maxValue)
throws org.apache.xmlrpc.XmlRpcException
networkID - attributeName - minColor - midColor - maxColor - minValue - midValue - maxValue -
org.apache.xmlrpc.XmlRpcException
public boolean setEdgeColorRule(java.lang.String networkID,
java.lang.String attributeName,
java.lang.String defaultColor,
java.util.List<java.lang.String> attributeValues,
java.util.List<java.lang.String> colors)
throws org.apache.xmlrpc.XmlRpcException
networkID - attributeName - defaultColor - attributeValues - colors -
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> _rGetNodesPositions(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to get the coordinates from.nodeIDs - List of node identifiers.
org.apache.xmlrpc.XmlRpcException
public java.util.List<java.lang.String> _rGetNodesPositions(java.lang.String networkID,
java.util.List<java.lang.String> nodeIDs,
java.lang.String nodeNameDelim,
java.lang.String xyDelim)
throws org.apache.xmlrpc.XmlRpcException
networkID - identifier of the network to get the coordinates from.nodeIDs - List of node identifiers.nodeNameDelim - delimiter to use between different entries.xyDelim - Delimiter to use between coordinates.
org.apache.xmlrpc.XmlRpcExceptionpublic boolean resetRootGraph()
protected static <A,B> java.util.HashMap<A,B> arraysToMap(A[] keys,
B[] values)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||