C# 클래스 SilverlightMappingToolBasic.MapDepth.TreeRenderer

파일 보기 프로젝트 열기: chris-tomich/Glyma 1 사용 예제들

공개 메소드들

메소드 설명
GetMaximumYPosition ( ) : double

If there are multiple root nodes on the map they must be placed so they don't overlap, this gives the map plus a margin to place the next map at.

PositionNodes ( TreeNodeGroup nodeGroup, int depth ) : void

Recursively goes through the node tree until it reaches the ends and places the Y coordinate for each node Each node is moved with relation to nodes above and to the right of it.

TreeRenderer ( double marginFromTop ) : System

비공개 메소드들

메소드 설명
OffsetNodes ( TreeNodeGroup nodeGroup, int depth ) : void

Moves the branch down to the correct levels if a collision was detected when working back down the tree towards the root node.

메소드 상세

GetMaximumYPosition() 공개 메소드

If there are multiple root nodes on the map they must be placed so they don't overlap, this gives the map plus a margin to place the next map at.
public GetMaximumYPosition ( ) : double
리턴 double

PositionNodes() 공개 메소드

Recursively goes through the node tree until it reaches the ends and places the Y coordinate for each node Each node is moved with relation to nodes above and to the right of it.
public PositionNodes ( TreeNodeGroup nodeGroup, int depth ) : void
nodeGroup TreeNodeGroup
depth int
리턴 void

TreeRenderer() 공개 메소드

public TreeRenderer ( double marginFromTop ) : System
marginFromTop double
리턴 System