class: TreeCl

public class: TreeCl
Author: Petra Vanícková
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 6.12.2005 16:36:33; Modified: 8.12.2005 23:01:08;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {0532AE31-BDAF-47ca-9A0C-A2EFD3C24EFB}
Summary description for TreeCl.

 

Goto: Fields, Methods

See also: NodeCl, InfoWindow, TreeControl

Appears in: CD Visualisation trees, networks

Connections
 
TreeCl Attributes
Attribute Details
public ArrayList
  rootNodes
Notes: contains roots of graph

private ArrayList
  treeLevels
Notes: list of sublists,sublist=level,level=list of nodes inside

private Size
  _windowSize
Notes: width and height of control

private Size
  _defaultWindowSize
Notes: width and height of control

private Size
  _windowScale
Notes: keeps distance between nodes

private NodeCl
  nodeSelected
Notes: flag that determines if the node is selected

private InfoWindow
  IW
Notes: form class showing detail info about node

 
TreeCl Methods
Operation Details
public
TreeCl():
Notes: constructor
public
GetWindowSize():Size
Notes: get for property _windowSize

@returns actual window size
public
GetDefaultWindowSize():Size
Notes: get for property _defaultWindowSize

@returns default window size
public
GetWindowScale():Size
Notes: get for property _windowScale

@returns default window scale
public
PaintTree(
   System.Windows.Forms.PaintEventArgs e):void
Notes: method that counts new nodes positions and calls their paint method
public
InfoWindowFocus():void
Notes: set a focus to the InfoWindow
public
InfoWindowClose():void
Notes: close the InfoWindow
public
CountDefaultSizeOfControl():void
Notes: method counts default tree size according to scale and tree shape
public
SetSizeOfControl(
   Size newSize):void
Notes: set method for _windowSize property
public
SetDefaultSizeOfControl():void
Notes: sets _windowSize to a default window size
public
SetWindowScale(
   Size newScale):void
Notes: set method for _windowScale property
public
FindSelected(
   Point mousePosition):NodeCl
Notes: finds out if mouse clicked on any node

@returns found node or null
public
ShowInfoWindow(
   NodeCl n):void
Notes: shows window with info about a node
public
UpdateInfoWindow(
   NodeCl n):void
Notes: shows window with info about a node
private
BuildTreeLevels():void
Notes: creates level structure from front
private
BuildFront():ArrayList
Notes: builds front form tree structure

@returns front - list of FrontNodeCl objects