C# Class SilverlightMappingToolBasic.MapDepth.TreeRenderer

Exibir arquivo Open project: chris-tomich/Glyma Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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.

Method Details

GetMaximumYPosition() public method

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
return double

PositionNodes() public method

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
return void

TreeRenderer() public method

public TreeRenderer ( double marginFromTop ) : System
marginFromTop double
return System