Table of Contents

Class Circle

Namespace
BOOSE
Assembly
BOOSE.dll

Draw a circle round the current cursor position. circle 50Canvas exception if a non-integer is passed.

public sealed class Circle : CommandOneParameter, ICommand
Inheritance
Circle
Implements
Inherited Members

Constructors

Circle()

blank constructor for factory instantiation.

public Circle()

Circle(Canvas, int)

draw from current position to x, y. cursor left at x,y

public Circle(Canvas c, int radius)

Parameters

c Canvas
radius int

Methods

CheckParameters(string[])

overridden generic one parameter message to say radius and not p1.

public override void CheckParameters(string[] parameterList)

Parameters

parameterList string[]

Exceptions

CommandException

Execute()

Execute the command

public override void Execute()