public class LabeledRectangle extends Rectangle
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
Constructor and Description |
---|
LabeledRectangle(double x,
double y,
double width,
double height,
javafx.scene.paint.Color color,
java.lang.String name)
Constructor for the Labeled Rectangle object
|
Modifier and Type | Method and Description |
---|---|
void |
draw(edu.msoe.winplotterfx.WinPlotterFX plotter)
A method that draws the Labeled Rectangle using the WinPlotterFX
|
setColor, setPenColor
public LabeledRectangle(double x, double y, double width, double height, javafx.scene.paint.Color color, java.lang.String name)
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 rectanglename
- the text assigned to the label