C# Class MeshExplorer.Controls.AngleHistogram

Displays an angle histogram.
The angle histogram is divided into two parts: the minimum angles on the left side (0 to 60 degrees) and the maximum angles on the right (60 to 180 degrees).
Inheritance: System.Windows.Forms.Control
Exibir arquivo Open project: filipkunc/GLGraphics

Public Methods

Method Description
AngleHistogram ( ) : System

Initializes a new instance of the AngleHistogram control.

SetData ( int dataMin, int dataMax ) : void

Updates the histogram data and invalidates the control.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
DrawHistogram ( Graphics g, int offset, int left, int size, int data, Brush brush, Brush brushTop ) : void
DrawStrings ( Graphics g, SizeF fSize, int size, int middle ) : void

Draws the labels on the bottom.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ParseData ( int data ) : void

Method Details

AngleHistogram() public method

Initializes a new instance of the AngleHistogram control.
public AngleHistogram ( ) : System
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

SetData() public method

Updates the histogram data and invalidates the control.
public SetData ( int dataMin, int dataMax ) : void
dataMin int
dataMax int
return void