C# Класс SilverlightMappingToolBasic.MapDepth.TreeRenderer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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