|
Cytoscape 2.3.1 (c) 2004 ISB, MSKCC, UCSD | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
Method Summary | |
void |
addEdgeContextMenuListener(ding.view.EdgeContextMenuListener l)
|
void |
addNodeContextMenuListener(ding.view.NodeContextMenuListener l)
|
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()
|
VisualStyle |
getVisualStyle()
|
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)
|
void |
removeEdgeContextMenuListener(ding.view.EdgeContextMenuListener l)
|
void |
removeNodeContextMenuListener(ding.view.NodeContextMenuListener l)
|
boolean |
setSelected(CyEdge[] edges)
Deprecated. this method is not working, use CyNetwork.setSelectedEdgeState(Collection, boolean) |
boolean |
setSelected(CyNode[] nodes)
Deprecated. this method is not working, use Cytoscape.CyNetwork#setSelectedNodeState(Collection, boolean) |
boolean |
setSelected(EdgeView[] edge_views)
Deprecated. this method is not working, use CyNetwork.setSelectedEdgeState(Collection, boolean) |
boolean |
setSelected(NodeView[] node_views)
Deprecated. this method is not working, use Cytoscape.CyNetwork#setSelectedNodeState(Collection, boolean) |
void |
setTitle(String title)
Sets the Title of this View |
void |
setVisualMapperEnabled(boolean state)
|
void |
setVisualStyle(String VSName)
|
void |
toggleVisualMapperEnabled()
|
Method Detail |
public CyNetwork getNetwork()
public void setTitle(String title)
public String getTitle()
public void redrawGraph(boolean layout, boolean vizmap)
public CyNetworkView getView()
public VisualMappingManager getVizMapManager()
public cytoscape.visual.ui.VizMapUI getVizMapUI()
public void toggleVisualMapperEnabled()
public void setVisualMapperEnabled(boolean state)
public boolean getVisualMapperEnabled()
public void putClientData(String data_name, Object data)
data_name
- the name of this client datapublic Collection getClientDataNames()
public Object getClientData(String data_name)
data_name
- the data to getpublic boolean setSelected(CyNode[] nodes)
Cytoscape.CyNetwork#setSelectedNodeState(Collection, boolean)
public boolean setSelected(NodeView[] node_views)
Cytoscape.CyNetwork#setSelectedNodeState(Collection, boolean)
public boolean applyVizMap(CyEdge edge)
public boolean applyVizMap(EdgeView edge_view)
public boolean applyVizMap(CyNode node)
public boolean applyVizMap(NodeView node_view)
public boolean applyVizMap(CyEdge edge, VisualStyle style)
public boolean applyVizMap(EdgeView edge_view, VisualStyle style)
public boolean applyVizMap(CyNode node, VisualStyle style)
public boolean applyVizMap(NodeView node_view, VisualStyle style)
public boolean setSelected(CyEdge[] edges)
CyNetwork.setSelectedEdgeState(Collection, boolean)
public boolean setSelected(EdgeView[] edge_views)
CyNetwork.setSelectedEdgeState(Collection, boolean)
public void applyVizmapper(VisualStyle style)
public void applyLayout(LayoutAlgorithm layout)
public void applyLockedLayout(LayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
public void applyLayout(LayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
public void applyLockedLayout(LayoutAlgorithm layout, cytoscape.view.CyNodeView[] nodes, cytoscape.view.CyEdgeView[] edges)
public void applyLayout(LayoutAlgorithm layout, cytoscape.view.CyNodeView[] nodes, cytoscape.view.CyEdgeView[] edges)
public void applyLockedLayout(LayoutAlgorithm layout, int[] nodes, int[] edges)
public void applyLayout(LayoutAlgorithm layout, int[] nodes, int[] edges)
public void setVisualStyle(String VSName)
public VisualStyle getVisualStyle()
public void addNodeContextMenuListener(ding.view.NodeContextMenuListener l)
public void removeNodeContextMenuListener(ding.view.NodeContextMenuListener l)
public void addEdgeContextMenuListener(ding.view.EdgeContextMenuListener l)
public void removeEdgeContextMenuListener(ding.view.EdgeContextMenuListener l)
|
www.cytoscape.org | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |