public class Oval extends DrawShape
Modifier and Type | Field and Description |
---|---|
private int |
rx
the x-radius of the oval
|
private int |
ry
the y-radius of the oval
|
Constructor and Description |
---|
Oval(Paint paint,
double[] tl,
double[] br)
Create an Oval
|
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 Oval(Paint paint, double[] tl, double[] br)
paint
- the main class of the programtl
- the top left corner of the shapebr
- the bottom right corner of the shapepublic void draw(javafx.scene.canvas.GraphicsContext graphics, boolean fill)
DrawShape