/*
 * PLRectangle.j
 * Tutorial-Drawing-part2
 *
 * Created by Philippe Laval on 2009/04/21.
 * Copyright 2009 Philippe Laval. All rights reserved.
 */

@import "PLGraphic.j"


@implementation PLRectangle : PLGraphic

- (id)init {
    self = [super init];
    if (self) {
    }
    return self;
}


- (CGPath)bezierPathForDrawing 
{
	var path = CGPathCreateMutable();
	var rect = [self bounds];

	CGPathAddRect(path, nil, rect);
	CGPathCloseSubpath(path);

    return path;
}


@end
