public class Circle extends Shape
Modifier and Type | Field and Description |
---|---|
private final double |
radius |
Constructor and Description |
---|
Circle(double x,
double y,
double radius,
javafx.scene.paint.Color color)
Constructor for the Circle class
|
Circle(double x,
double y,
double width,
double height,
javafx.scene.paint.Color color)
Constructor for the Circle class
|
Modifier and Type | Method and Description |
---|---|
void |
draw(edu.msoe.winplotterfx.WinPlotterFX plotter)
A method that draws the circle using the WinPlotterFX
|
setColor, setPenColor
public Circle(double x, double y, double radius, javafx.scene.paint.Color color)
x
- x location of the center of the circley
- y location of the center of the circleradius
- length of the radius of the circlecolor
- the color of the circlepublic Circle(double x, double y, double width, double height, javafx.scene.paint.Color color)
x
- The lower left corner x-value of the bounding box around the circley
- the lower left corner y-value of the bounding box around the circlewidth
- the width of the circleheight
- the height of the circlecolor
- the color of the circle