Table of Contents

Class Rect

Namespace
BOOSE
Assembly
BOOSE.dll

Draw a rectangle of provided with and heigh with the current cursor position being the top left corner.

public class Rect : CommandOneParameter, ICommand
Inheritance
Rect
Implements
Inherited Members

Constructors

Rect()

blank constructor for factory instantiation.

public Rect()

Rect(Canvas, int, int)

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

public Rect(Canvas c, int width, int height)

Parameters

c Canvas
width int
height 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()