|
|
__init__(self,
title,
close_open=False)
Constructs the GraphView object. |
|
|
|
|
AddNode(self,
obj)
Creates a node associated with the given object and returns the node
id |
|
|
|
|
AddEdge(self,
src_node,
dest_node)
Creates an edge between two given node ids |
|
|
|
|
Clear(self)
Clears all the nodes and edges |
|
|
|
|
|
|
|
__getitem__(self,
idx)
Returns a reference to the object associated with this node id |
|
|
|
|
Count(self)
Returns the node count |
|
|
|
|
Close(self)
Closes the graph. |
|
|
|
|
|
|
|
Show(self)
Shows an existing graph or creates a new one |
|
|
|
|
Select(self,
node_id)
Selects a node on the graph |
|
|
|
|
AddCommand(self,
title,
hotkey)
Adds a menu command to the graph. |
|
|
|
|
OnRefresh(self)
Event called when the graph is refreshed or first created. |
|
|
|
|
OnGetText(self,
node_id)
Triggered when the graph viewer wants the text and color for a given
node. |
|
|
|
|
OnActivate(self)
Triggered when the graph window gets the focus |
|
|
|
|
OnDeactivate(self)
Triggered when the graph window loses the focus |
|
|
|
|
OnSelect(self,
node_id)
Triggered when a node is being selected |
|
|
|
|
OnHint(self,
node_id)
Triggered when the graph viewer wants to retrieve hint text
associated with a given node |
|
|
|
|
OnClose(self)
Triggered when the graph viewer window is being closed |
|
|
|
|
OnClick(self,
node_id)
Triggered when a node is clicked |
|
|
|
|
OnDblClick(self,
node_id)
Triggerd when a node is double-clicked. |
|
|
|
|
OnCommand(self,
cmd_id)
Triggered when a menu command is selected through the menu or its
hotkey |
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|