wx.Graph.Tree< DataType > Class Reference

Inheritance diagram for wx.Graph.Tree< DataType >:

wx.ICanBeMadeReadonly wx.Graph.IGraph< DataType > wx.ICanBeMadeReadonly

List of all members.

Public Member Functions

DataType GetDataOfNode (int nodeId)
ICollection< int > GetEdgesFromNode (int nodeID)
ICollection< int > GetEdgesToNode (int nodeID)
object MakeReadOnly ()
void SetRoot (TreeNode< DataType > newRoot)
 Tree ()

Properties

ICollection< int[]> Arcs [get]
bool IsReadonly [get]
ICollection< int > NodeIDs [get]
TreeNode< DataType > Root [get]


Constructor & Destructor Documentation

wx.Graph.Tree< DataType >.Tree (  ) 


Member Function Documentation

DataType wx.Graph.Tree< DataType >.GetDataOfNode ( int  id  ) 

This will return the data that is associated with the graph node of the provided ID.

Parameters:
id designates the graph node whose data will be returned.
Returns:

Implements wx.Graph.IGraph< DataType >.

ICollection<int> wx.Graph.Tree< DataType >.GetEdgesFromNode ( int  nodeID  ) 

Returns a collection of that nodes A (designated by their IDs) where there is an arc from A to the node designated by nodeID.

Parameters:
nodeID The node that is the target of the selected edges
Returns:

Implements wx.Graph.IGraph< DataType >.

ICollection<int> wx.Graph.Tree< DataType >.GetEdgesToNode ( int  nodeID  ) 

Returns a collection of that nodes A (designated by their IDs) where there is an edge from the node designated by nodeID to A.

Parameters:
nodeID The node that is the target of the selected edges
Returns:

Implements wx.Graph.IGraph< DataType >.

object wx.Graph.Tree< DataType >.MakeReadOnly (  ) 

From this call, all calls to modifiers will cause exceptions. This shall return this.

Implements wx.ICanBeMadeReadonly.

void wx.Graph.Tree< DataType >.SetRoot ( TreeNode< DataType >  newRoot  ) 

Sets the argument as a new root node.

Parameters:
newRoot The node that shall be the root node.
Exceptions:
CannotChangeReadonly Will be thrown if this is read-only.
ApplicationException If the argument is already part of a tree.


Property Documentation

ICollection<int[]> wx.Graph.Tree< DataType >.Arcs [get]

A collection of tuples of integers that represent the arcs between the nodes. The integers are node IDs.

Implements wx.Graph.IGraph< DataType >.

bool wx.Graph.Tree< DataType >.IsReadonly [get]

If this is true, all modifiers will cause exceptions. If this is false, modfiers can be used.

Implements wx.ICanBeMadeReadonly.

ICollection<int> wx.Graph.Tree< DataType >.NodeIDs [get]

Collection of node IDs.

Implements wx.Graph.IGraph< DataType >.

TreeNode<DataType> wx.Graph.Tree< DataType >.Root [get]

This is the root node of the tree. This is null if the tree is empty.


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads