Modifier and Type | Field and Description |
---|---|
private javafx.scene.paint.Color |
color |
protected double |
x |
protected double |
y |
Constructor and Description |
---|
Shape(double x,
double y,
javafx.scene.paint.Color color)
Constructor for the Shape class
|
Modifier and Type | Method and Description |
---|---|
abstract void |
draw(edu.msoe.winplotterfx.WinPlotterFX plotter)
An abstract method declaration for drawing the subclasses in a WinPlotterFX object
|
void |
setColor(javafx.scene.paint.Color color)
Setter method for the color of a Shape
|
void |
setPenColor(edu.msoe.winplotterfx.WinPlotterFX plotter)
This method sets the Pen color for the WinPlotterFX object to match the color of the Shape
|
private javafx.scene.paint.Color color
protected final double x
protected final double y
public Shape(double x, double y, javafx.scene.paint.Color color)
x
- starting x-coordinate for the Shapey
- starting y-coordinate for the Shapecolor
- the color of the Shapepublic void setColor(javafx.scene.paint.Color color)
color
- the RGB Color of the Shapepublic void setPenColor(edu.msoe.winplotterfx.WinPlotterFX plotter)
plotter
- WinPlotter object that we are drawing the Shape inpublic abstract void draw(edu.msoe.winplotterfx.WinPlotterFX plotter)
plotter
- WinPlotterFX object that we are drawing the Shape in