public class Rectangle extends Shape
Modifier and Type | Field and Description |
---|---|
protected double |
height |
protected double |
width |
Constructor and Description |
---|
Rectangle(double x,
double y,
double width,
double height,
javafx.scene.paint.Color color)
Constructor for the Rectangle object
|
Modifier and Type | Method and Description |
---|---|
void |
draw(edu.msoe.winplotterfx.WinPlotterFX plotter)
A method that draws the Rectangle using the WinPlotterFX
|
setColor, setPenColor
public Rectangle(double x, double y, double width, double height, javafx.scene.paint.Color color)
x
- The lower left corner x-value of the rectangley
- the lower left corner y-value of the rectanglewidth
- the width of the rectangleheight
- the height of the rectanglecolor
- the color of the rectangle