Naanou.Vis
Class Circle

The main circle

Field Summary
System.Drawing.RectangleF boundingBox
System.Drawing.PointF center
System.Drawing.SolidBrush currentBrush
float diameter
System.Collections.ArrayList Dots
int padding
System.Drawing.Pen pen
double PiDiv
         Pi divided by 180
float radius

Constructor Summary
Circle(System.Drawing.Pen pen)
         Constructor

Property Summary
System.Drawing.RectangleF Bounds
         Gets the bounding box
System.Drawing.PointF Center
         Gets the center position
int Count
         Gets the number of Dots
float Diameter
         Gets the diameter
System.Drawing.Pen Pen
         Gets or sets the pen to draw the circle in
float Radius
         Gets the radius

Method Summary
void Add(Naanou.Vis.Dot Dot)
         Adds a Dot
void Clear()
         Clears all dots
double DegreesToRadians(double angle)
         Converts degrees to radians
Naanou.Vis.Dot DotAt(System.Drawing.Point location)
         Gets the Dot at a location
void Measure(Naanou.Vis.Viewer viewer, System.Drawing.Graphics g)
         Measure
void Paint(Naanou.Vis.Viewer viewer, System.Drawing.Graphics g)
         Paints circle and child objects

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

boundingBox

private System.Drawing.RectangleF boundingBox


center

private System.Drawing.PointF center


currentBrush

private System.Drawing.SolidBrush currentBrush


diameter

private float diameter


Dots

private System.Collections.ArrayList Dots


padding

private int padding


pen

private System.Drawing.Pen pen


PiDiv

public double PiDiv

Pi divided by 180


radius

private float radius

Constructor Detail

Circle

public Circle(System.Drawing.Pen pen)

Constructor

Parameters:
pen -
Property Detail

Bounds

public System.Drawing.RectangleF Bounds

Gets the bounding box


Center

public System.Drawing.PointF Center

Gets the center position


Count

public int Count

Gets the number of Dots


Diameter

public float Diameter

Gets the diameter


Pen

public System.Drawing.Pen Pen

Gets or sets the pen to draw the circle in


Radius

public float Radius

Gets the radius

Method Detail

Add

public void Add(Naanou.Vis.Dot Dot)

Adds a Dot

Parameters:
Dot - Dot

Clear

public void Clear()

Clears all dots


DegreesToRadians

public double DegreesToRadians(double angle)

Converts degrees to radians

Parameters:
angle - Degrees
Returns:
Radians

DotAt

public Naanou.Vis.Dot DotAt(System.Drawing.Point location)

Gets the Dot at a location

Parameters:
location - Location
Returns:
Dot at that point, or null

Measure

public void Measure(Naanou.Vis.Viewer viewer,
                    System.Drawing.Graphics g)

Measure

Parameters:
viewer - Viewer
g - Graphics surface

Paint

public void Paint(Naanou.Vis.Viewer viewer,
                  System.Drawing.Graphics g)

Paints circle and child objects

Parameters:
viewer - Viewer
g - Graphics surface