|
Cytoscape 2.8.0 API | |||||||||
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 defaults 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 painting is based on, and is very
fast, flexible 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 accomplish your data to view mappings. The manual is a good place to start.
Field Summary |
---|
Method Summary | |
---|---|
void |
addEdgeContextMenuListener(EdgeContextMenuListener l)
DOCUMENT ME! |
void |
addNodeContextMenuListener(NodeContextMenuListener l)
DOCUMENT ME! |
void |
applyLayout(CyLayoutAlgorithm layout)
Applies the given layout to the entire CyNetworkView |
void |
applyLayout(CyLayoutAlgorithm layout,
CyNode[] nodes,
CyEdge[] edges)
Applies the given layout to only the given Nodes and Edges. |
void |
applyLayout(CyLayoutAlgorithm layout,
CyNodeView[] nodes,
CyEdgeView[] edges)
Applies the given layout to only the given NodeViews and EdgeViews. |
void |
applyLayout(CyLayoutAlgorithm layout,
int[] nodes,
int[] edges)
Applies the given layout to only the given Nodes and Edges. |
void |
applyLockedLayout(CyLayoutAlgorithm layout,
CyNode[] nodes,
CyEdge[] edges)
Applies the given layout to the entire CyNetworkView, but locks the given Nodes and Edges in place. |
void |
applyLockedLayout(CyLayoutAlgorithm layout,
CyNodeView[] nodes,
CyEdgeView[] edges)
Applies the given layout to the entire CyNetworkView, but locks the given NodeViews and EdgeViews in place. |
void |
applyLockedLayout(CyLayoutAlgorithm 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()
DOCUMENT ME! |
boolean |
getVisualMapperEnabled()
DOCUMENT ME! |
VisualStyle |
getVisualStyle()
DOCUMENT ME! |
VisualMappingManager |
getVizMapManager()
DOCUMENT ME! |
void |
putClientData(String data_name,
Object data)
Networks can support client data. |
void |
redrawGraph(boolean layout,
boolean vizmap)
DOCUMENT ME! |
void |
removeEdgeContextMenuListener(EdgeContextMenuListener l)
DOCUMENT ME! |
void |
removeNodeContextMenuListener(NodeContextMenuListener l)
DOCUMENT ME! |
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)
DOCUMENT ME! |
void |
setVisualStyle(String VSName)
DOCUMENT ME! |
void |
toggleVisualMapperEnabled()
DOCUMENT ME! |
Method Detail |
---|
CyNetwork getNetwork()
void setTitle(String title)
String getTitle()
void redrawGraph(boolean layout, boolean vizmap)
layout
- DOCUMENT ME!vizmap
- DOCUMENT ME!CyNetworkView getView()
VisualMappingManager getVizMapManager()
void toggleVisualMapperEnabled()
void setVisualMapperEnabled(boolean state)
state
- DOCUMENT ME!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(CyLayoutAlgorithm layout)
void applyLockedLayout(CyLayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
void applyLayout(CyLayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
void applyLockedLayout(CyLayoutAlgorithm layout, CyNodeView[] nodes, CyEdgeView[] edges)
void applyLayout(CyLayoutAlgorithm layout, CyNodeView[] nodes, CyEdgeView[] edges)
void applyLockedLayout(CyLayoutAlgorithm layout, int[] nodes, int[] edges)
void applyLayout(CyLayoutAlgorithm layout, int[] nodes, int[] edges)
void setVisualStyle(String VSName)
VSName
- DOCUMENT ME!VisualStyle getVisualStyle()
void addNodeContextMenuListener(NodeContextMenuListener l)
l
- DOCUMENT ME!void removeNodeContextMenuListener(NodeContextMenuListener l)
l
- DOCUMENT ME!void addEdgeContextMenuListener(EdgeContextMenuListener l)
l
- DOCUMENT ME!void removeEdgeContextMenuListener(EdgeContextMenuListener l)
l
- DOCUMENT ME!
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |