All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cs101.canvas.RoundRect

java.lang.Object
   |
   +----cs101.canvas.GraphicsObject
           |
           +----cs101.canvas.ResizableObject
                   |
                   +----cs101.canvas.FilledObject
                           |
                           +----cs101.canvas.RoundRect

public class RoundRect
extends FilledObject
A GraphicsObject the represents a geometric
rectangle with round corners


Constructor Index

 o RoundRect(int, int, int, int)
Constructs a RoundRect with black as the default color
 o RoundRect(int, int, int, int, Color)
Constructs a RoundRect with the passed color

Method Index

 o draw(Graphics)

Constructors

 o RoundRect
 public RoundRect(int x,
                  int y,
                  int width,
                  int height)
Constructs a RoundRect with black as the default color

Parameters:
x - x coordinate of the left side
y - y coordinate of the top side
width - width of the round rectangle
height - height of the round rectangle
Returns:
none
 o RoundRect
 public RoundRect(int x,
                  int y,
                  int width,
                  int height,
                  Color graphicsColor)
Constructs a RoundRect with the passed color

Parameters:
x - x coordinate of the left side
y - y coordinate of the top side
width - width of the round rectangle
height - height of the round rectangle
graphicsColor - color of the round rectangle
Returns:
none

Methods

 o draw
 public void draw(Graphics g)
Overrides:
draw in class GraphicsObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index