|
Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CyNetworkView
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,
CyNodeView[] nodes,
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,
CyNodeView[] nodes,
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()
|
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 |
---|
CyNetwork getNetwork()
void setTitle(String title)
String getTitle()
void redrawGraph(boolean layout, boolean vizmap)
CyNetworkView getView()
VisualMappingManager getVizMapManager()
VizMapUI getVizMapUI()
void toggleVisualMapperEnabled()
void setVisualMapperEnabled(boolean state)
boolean getVisualMapperEnabled()
void putClientData(String data_name, Object data)
data_name
- the name of this client dataCollection getClientDataNames()
Object getClientData(String data_name)
data_name
- the data to getboolean setSelected(CyNode[] nodes)
Cytoscape.CyNetwork#setSelectedNodeState(Collection, boolean)
boolean setSelected(NodeView[] node_views)
Cytoscape.CyNetwork#setSelectedNodeState(Collection, boolean)
boolean applyVizMap(CyEdge edge)
boolean applyVizMap(EdgeView edge_view)
boolean applyVizMap(CyNode node)
boolean applyVizMap(NodeView node_view)
boolean applyVizMap(CyEdge edge, VisualStyle style)
boolean applyVizMap(EdgeView edge_view, VisualStyle style)
boolean applyVizMap(CyNode node, VisualStyle style)
boolean applyVizMap(NodeView node_view, VisualStyle style)
boolean setSelected(CyEdge[] edges)
CyNetwork.setSelectedEdgeState(Collection, boolean)
boolean setSelected(EdgeView[] edge_views)
CyNetwork.setSelectedEdgeState(Collection, boolean)
void applyVizmapper(VisualStyle style)
applyAppearances
- if true, the vizmapper will recalculate
the node and edge appearancesvoid applyLayout(LayoutAlgorithm layout)
void applyLockedLayout(LayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
void applyLayout(LayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
void applyLockedLayout(LayoutAlgorithm layout, CyNodeView[] nodes, CyEdgeView[] edges)
void applyLayout(LayoutAlgorithm layout, CyNodeView[] nodes, CyEdgeView[] edges)
void applyLockedLayout(LayoutAlgorithm layout, int[] nodes, int[] edges)
void applyLayout(LayoutAlgorithm layout, int[] nodes, int[] edges)
void setVisualStyle(String VSName)
VisualStyle getVisualStyle()
void addNodeContextMenuListener(ding.view.NodeContextMenuListener l)
void removeNodeContextMenuListener(ding.view.NodeContextMenuListener l)
void addEdgeContextMenuListener(ding.view.EdgeContextMenuListener l)
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 |