Cytoscape 2.2 (c) 2004 ISB, MSKCC, UCSD

cytoscape.view
Interface CyNetworkView

All Superinterfaces:
GraphView

public interface CyNetworkView
extends GraphView

CyNetworkView is responsible for actually getting a graph to show up on the screen.

Cytoscape does not currently define specific classes for NodeViews and EdgeViews, the deafults from the GINY graph library ( namely phoebe.PNodeView and phoebe.PEdgeView ) are most commonly used. Making custom nodes is easy and fun. One must implement the giny.view.NodeView interface and inherit from edu.umd.cs.piccolo.PNode. The Piccolo project is what all of the paiting is based on, and is very fast, flexable and powerful. Becoming acquainted with Piccolo is essential for build custom nodes.

Fortunately, if you just want basic shapes and colors, it's all built into the UI already, and you really need never even use this class. Just learn how to use the VizMapper to acclompish your data to view mappings. The manual is a good place to start.


Field Summary
 
Fields inherited from interface giny.view.GraphView
EDGE_LINE_TYPE, EDGE_PAINT, EDGE_SELECTION_PAINT, EDGE_SOURCE_END_PAINT, EDGE_SOURCE_END_SELECTED_PAINT, EDGE_SOURCE_END_TYPE, EDGE_TARGET_END_PAINT, EDGE_TARGET_END_SELECTED_PAINT, EDGE_TARGET_END_TYPE, EDGE_WIDTH, NODE_BORDER_PAINT, NODE_BORDER_WIDTH, NODE_HEIGHT, NODE_LABEL, NODE_PAINT, NODE_SELECTION_PAINT, NODE_SHAPE, NODE_WIDTH, NODE_X_POSITION, NODE_Y_POSITION, NODE_Z_POSITION, SOURCE_INDEX, TARGET_INDEX
 
Method Summary
 void applyLayout(LayoutAlgorithm layout)
          Applies the given layout to the entire CyNetworkView
 void applyLayout(LayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
          Applies the given layout to only the given Nodes and Edges
 void applyLayout(LayoutAlgorithm layout, cytoscape.view.CyNodeView[] nodes, cytoscape.view.CyEdgeView[] edges)
          Applies the given layout to only the given NodeViews and EdgeViews
 void applyLayout(LayoutAlgorithm layout, int[] nodes, int[] edges)
          Applies the given layout to only the given Nodes and Edges
 void applyLockedLayout(LayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
          Applies the given layout to the entire CyNetworkView, but locks the given Nodes and Edges in place
 void applyLockedLayout(LayoutAlgorithm layout, cytoscape.view.CyNodeView[] nodes, cytoscape.view.CyEdgeView[] edges)
          Applies the given layout to the entire CyNetworkView, but locks the given NodeViews and EdgeViews in place
 void applyLockedLayout(LayoutAlgorithm layout, int[] nodes, int[] edges)
          Applies the given layout to the entire CyNetworkView, but locks the given Nodes and Edges in place
 boolean applyVizMap(CyEdge edge)
          Applies the given edge to the given vizmapper
 boolean applyVizMap(CyEdge edge, VisualStyle style)
          Applies the given edge to the given vizmapper
 boolean applyVizMap(CyNode node)
          Applies the given node to the given vizmapper
 boolean applyVizMap(CyNode node, VisualStyle style)
          Applies the given node to the given vizmapper
 boolean applyVizMap(EdgeView edge_view)
          Applies the given edge to the given vizmapper
 boolean applyVizMap(EdgeView edge_view, VisualStyle style)
          Applies the given edge to the given vizmapper
 boolean applyVizMap(NodeView node_view)
          Applies the given node to the given vizmapper
 boolean applyVizMap(NodeView node_view, VisualStyle style)
          Applies the given node to the given vizmapper
 void applyVizmapper(VisualStyle style)
           
 Object getClientData(String data_name)
          Get Some client data
 Collection getClientDataNames()
          Get a list of all currently available ClientData objects
 CyNetwork getNetwork()
          Returns the network displayed by this object.
 String getTitle()
          Returns the Title of this View
 CyNetworkView getView()
           
 boolean getVisualMapperEnabled()
           
 VisualMappingManager getVizMapManager()
           
 cytoscape.visual.ui.VizMapUI getVizMapUI()
           
 void putClientData(String data_name, Object data)
          Networks can support client data.
 void redrawGraph(boolean layout, boolean vizmap)
           
 boolean setSelected(CyEdge[] edges)
          Sets the Given edges Selected
 boolean setSelected(CyNode[] nodes)
          Sets the Given nodes Selected
 boolean setSelected(EdgeView[] edge_views)
          Sets the Given edges Selected
 boolean setSelected(NodeView[] node_views)
          Sets the Given nodes Selected
 void setTitle(String title)
          Sets the Title of this View
 void setVisualMapperEnabled(boolean state)
           
 void toggleVisualMapperEnabled()
           
 
Methods inherited from interface giny.view.GraphView
addContextMethod, addEdgeView, addEdgeView, addGraphViewChangeListener, addNodeView, addNodeView, addNodeView, disableEdgeSelection, disableNodeSelection, edgeCount, edgeSelectionEnabled, enableEdgeSelection, enableNodeSelection, fitContent, getAllEdgePropertyData, getAllNodePropertyData, getBackgroundPaint, getComponent, getContextMethods, getContextMethods, getEdgeBooleanProperty, getEdgeDoubleProperty, getEdgeFloatProperty, getEdgeIntProperty, getEdgeObjectProperty, getEdgeView, getEdgeView, getEdgeViewCount, getEdgeViewsIterator, getEdgeViewsList, getEdgeViewsList, getEdgeViewsList, getGraphPerspective, getIdentifier, getNodeBooleanProperty, getNodeDoubleProperty, getNodeFloatProperty, getNodeIntProperty, getNodeObjectProperty, getNodeView, getNodeView, getNodeViewCount, getNodeViewsIterator, getRootGraph, getSelectedEdgeIndices, getSelectedEdges, getSelectedNodeIndices, getSelectedNodes, getZoom, hideGraphObject, hideGraphObjects, nodeCount, nodeSelectionEnabled, removeEdgeView, removeEdgeView, removeEdgeView, removeGraphViewChangeListener, removeNodeView, removeNodeView, removeNodeView, setAllEdgePropertyData, setAllNodePropertyData, setBackgroundPaint, setEdgeBooleanProperty, setEdgeDoubleProperty, setEdgeFloatProperty, setEdgeIntProperty, setEdgeObjectProperty, setIdentifier, setNodeBooleanProperty, setNodeDoubleProperty, setNodeFloatProperty, setNodeIntProperty, setNodeObjectProperty, setZoom, showGraphObject, showGraphObjects, updateView
 

Method Detail

getNetwork

public CyNetwork getNetwork()
Returns the network displayed by this object.


setTitle

public void setTitle(String title)
Sets the Title of this View


getTitle

public String getTitle()
Returns the Title of this View


redrawGraph

public void redrawGraph(boolean layout,
                        boolean vizmap)

getView

public CyNetworkView getView()

getVizMapManager

public VisualMappingManager getVizMapManager()

getVizMapUI

public cytoscape.visual.ui.VizMapUI getVizMapUI()

toggleVisualMapperEnabled

public void toggleVisualMapperEnabled()

setVisualMapperEnabled

public void setVisualMapperEnabled(boolean state)

getVisualMapperEnabled

public boolean getVisualMapperEnabled()

putClientData

public void putClientData(String data_name,
                          Object data)
Networks can support client data.

Parameters:
data_name - the name of this client data

getClientDataNames

public Collection getClientDataNames()
Get a list of all currently available ClientData objects


getClientData

public Object getClientData(String data_name)
Get Some client data

Parameters:
data_name - the data to get

setSelected

public boolean setSelected(CyNode[] nodes)
Sets the Given nodes Selected


setSelected

public boolean setSelected(NodeView[] node_views)
Sets the Given nodes Selected


applyVizMap

public boolean applyVizMap(CyEdge edge)
Applies the given edge to the given vizmapper


applyVizMap

public boolean applyVizMap(EdgeView edge_view)
Applies the given edge to the given vizmapper


applyVizMap

public boolean applyVizMap(CyNode node)
Applies the given node to the given vizmapper


applyVizMap

public boolean applyVizMap(NodeView node_view)
Applies the given node to the given vizmapper


applyVizMap

public boolean applyVizMap(CyEdge edge,
                           VisualStyle style)
Applies the given edge to the given vizmapper


applyVizMap

public boolean applyVizMap(EdgeView edge_view,
                           VisualStyle style)
Applies the given edge to the given vizmapper


applyVizMap

public boolean applyVizMap(CyNode node,
                           VisualStyle style)
Applies the given node to the given vizmapper


applyVizMap

public boolean applyVizMap(NodeView node_view,
                           VisualStyle style)
Applies the given node to the given vizmapper


setSelected

public boolean setSelected(CyEdge[] edges)
Sets the Given edges Selected


setSelected

public boolean setSelected(EdgeView[] edge_views)
Sets the Given edges Selected


applyVizmapper

public void applyVizmapper(VisualStyle style)

applyLayout

public void applyLayout(LayoutAlgorithm layout)
Applies the given layout to the entire CyNetworkView


applyLockedLayout

public void applyLockedLayout(LayoutAlgorithm layout,
                              CyNode[] nodes,
                              CyEdge[] edges)
Applies the given layout to the entire CyNetworkView, but locks the given Nodes and Edges in place


applyLayout

public void applyLayout(LayoutAlgorithm layout,
                        CyNode[] nodes,
                        CyEdge[] edges)
Applies the given layout to only the given Nodes and Edges


applyLockedLayout

public void applyLockedLayout(LayoutAlgorithm layout,
                              cytoscape.view.CyNodeView[] nodes,
                              cytoscape.view.CyEdgeView[] edges)
Applies the given layout to the entire CyNetworkView, but locks the given NodeViews and EdgeViews in place


applyLayout

public void applyLayout(LayoutAlgorithm layout,
                        cytoscape.view.CyNodeView[] nodes,
                        cytoscape.view.CyEdgeView[] edges)
Applies the given layout to only the given NodeViews and EdgeViews


applyLockedLayout

public void applyLockedLayout(LayoutAlgorithm layout,
                              int[] nodes,
                              int[] edges)
Applies the given layout to the entire CyNetworkView, but locks the given Nodes and Edges in place


applyLayout

public void applyLayout(LayoutAlgorithm layout,
                        int[] nodes,
                        int[] edges)
Applies the given layout to only the given Nodes and Edges


www.cytoscape.org