public class Circle extends DrawShape
Modifier and Type | Field and Description |
---|---|
private int |
radius
The radius of the circle
|
Constructor and Description |
---|
Circle(Paint paint,
double[] tl,
double[] br)
Create a Circle
|
Circle(Paint paint,
int x,
int y,
int r)
Create a Circle
|
Modifier and Type | Method and Description |
---|---|
void |
draw(javafx.scene.canvas.GraphicsContext graphics,
boolean fill)
Draws this shape
Some shapes (like Tube) may ignore the fill parameter |
public Circle(Paint paint, int x, int y, int r)
paint
- the main class of the programx
- the x-coordinate of the center of the circley
- the y-coordinate of the center of the circler
- the radius of the circlepublic Circle(Paint paint, double[] tl, double[] br)
paint
- the main class of the programtl
- the top left corner of the circlebr
- the bottom right corner of the circlepublic void draw(javafx.scene.canvas.GraphicsContext graphics, boolean fill)
DrawShape