Method | Description | |
---|---|---|
Dispose ( ) : void | ||
GenerateTree ( int width, int height, string startFromNodeId, |
Creates the tree
|
|
GenerateTree ( string startFromNodeId, |
This overloaded method can be used to return the image using it's default calculated size, without resizing
|
|
GetRectangleFromNode ( |
the node holds the x,y in attributes use them to calculate the position This is public so it can be used by other classes trying to calculate the cursor/mouse location
|
|
TreeBuilder ( |
ctor
|
Method | Description | |
---|---|---|
BuildTree ( |
convert the datatable to an XML document
|
|
CalculateImageMapData ( ) : void |
After resizing the image, all positions of the rectanlges need to be recalculated too.
|
|
DrawChart ( |
Draws the actual chart image.
|
|
GetMaxXOfDescendants ( |
Get the maximum x of the lowest child on the current tree of nodes Recursion does not work here, so we'll use a loop to climb down the tree Recursion is not a solution because we need to return the value of the last leaf of the tree. That would require managing a global variable.
|
|
GetXPosByOwnChildren ( |
||
GetXPosByParentPreviousSibling ( |
||
GetXPosByPreviousSibling ( |
||
GetXmlNode ( string nodeId, string nodeDescription, string nodeNote, Color backColor, Color foreColor ) : |
create an xml node based on supplied data
|
|
OverlapExists ( ) : bool |
used for testing purposes, to see if overlap exists between at least 2 boxes.
|
public GenerateTree ( int width, int height, string startFromNodeId, |
||
width | int | |
height | int | |
startFromNodeId | string | |
imageType | ||
return | Stream |
public GenerateTree ( string startFromNodeId, |
||
startFromNodeId | string | |
imageType | ||
return | Stream |
public GetRectangleFromNode ( |
||
oNode | ||
return |