C# 클래스 Xnlab.SQLMon.Controls.Tree.TreeBuilder

상속: IDisposable
파일 보기 프로젝트 열기: unruledboy/SQLMonitor 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
GenerateTree ( int width, int height, string startFromNodeId, ImageFormat imageType ) : Stream

Creates the tree

GenerateTree ( string startFromNodeId, ImageFormat imageType ) : Stream

This overloaded method can be used to return the image using it's default calculated size, without resizing

GetRectangleFromNode ( XmlNode oNode ) : Rectangle

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 ( Tree data ) : System

ctor

비공개 메소드들

메소드 설명
BuildTree ( XmlNode oNode, int y ) : void

convert the datatable to an XML document

CalculateImageMapData ( ) : void

After resizing the image, all positions of the rectanlges need to be recalculated too.

DrawChart ( XmlNode oNode ) : void

Draws the actual chart image.

GetMaxXOfDescendants ( XmlNode currentNode ) : int

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 ( XmlNode currentNode ) : int
GetXPosByParentPreviousSibling ( XmlNode currentNode ) : int
GetXPosByPreviousSibling ( XmlNode currentNode ) : int
GetXmlNode ( string nodeId, string nodeDescription, string nodeNote, Color backColor, Color foreColor ) : XmlNode

create an xml node based on supplied data

OverlapExists ( ) : bool

used for testing purposes, to see if overlap exists between at least 2 boxes.

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GenerateTree() 공개 메소드

Creates the tree
public GenerateTree ( int width, int height, string startFromNodeId, ImageFormat imageType ) : Stream
width int
height int
startFromNodeId string
imageType System.Drawing.Imaging.ImageFormat
리턴 Stream

GenerateTree() 공개 메소드

This overloaded method can be used to return the image using it's default calculated size, without resizing
public GenerateTree ( string startFromNodeId, ImageFormat imageType ) : Stream
startFromNodeId string
imageType System.Drawing.Imaging.ImageFormat
리턴 Stream

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
public GetRectangleFromNode ( XmlNode oNode ) : Rectangle
oNode System.Xml.XmlNode
리턴 System.Drawing.Rectangle

TreeBuilder() 공개 메소드

ctor
public TreeBuilder ( Tree data ) : System
data Tree
리턴 System