TreePanel Class Reference

A graphical component displaying a representation of a tree. More...

List of all members.

Public Member Functions

 TreePanel (TreeDrawing tree)
 Constructs a new TreePanel displaying the given TreeDrawing using the default font.
 TreePanel (TreeDrawing tree, Font fnt)
 Constructs a new TreePanel displaying the given TreeDrawing using the given Font.

Public Attributes

const string StandardCharacter = "m"
 The character used as the standard for determining the character width.

Static Public Attributes

static new readonly Font DefaultFont = new Font(FontFamily.GenericMonospace, 12.0F)
 The default Font.

Protected Member Functions

override void OnPaint (PaintEventArgs ea)
 Paints this component on the graphics context of the given PaintEventArgs.


Detailed Description

A graphical component displaying a representation of a tree.

TreePanel is a subclass of System.Windows.Forms.Panel. A TreePanel can be constructed quickly from a TreeDrawing. Because this component should not have children, no children are rendered, even if they are added. The colors of the drawing are determined by the underlying TreeDrawing, so the foreground color is unused.

Author:
Rod Howell (rhowell@ksu.edu)
See also:
TreeDrawing

System.Windows.Forms.Panel


Constructor & Destructor Documentation

TreePanel ( TreeDrawing  tree  ) 

Constructs a new TreePanel displaying the given TreeDrawing using the default font.

Exceptions:
NullReferenceException if tree is null.

TreePanel ( TreeDrawing  tree,
Font  fnt 
)

Constructs a new TreePanel displaying the given TreeDrawing using the given Font.

Exceptions:
NullReferenceException if either argument is null.
See also:
System.Drawing.Font


Member Function Documentation

override void OnPaint ( PaintEventArgs  ea  )  [protected]

Paints this component on the graphics context of the given PaintEventArgs.

Overrides the OnPaint method of System.Windows.Forms.Control.

Parameters:
ea Encapsulates the graphics context and clip to use for painting.
See also:
System.Windows.Forms.Control

System.Windows.Forms.PaintEventArgs


Member Data Documentation

new readonly Font DefaultFont = new Font(FontFamily.GenericMonospace, 12.0F) [static]

const string StandardCharacter = "m"

The character used as the standard for determining the character width.


Generated on Sun May 25 09:41:52 2008 by  doxygen 1.5.5