public class LabeledTriangle extends Triangle
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
Constructor and Description |
---|
LabeledTriangle(double x,
double y,
double base,
double height,
javafx.scene.paint.Color color,
java.lang.String name)
Constructor for the Labeled Triangle object
|
Modifier and Type | Method and Description |
---|---|
void |
draw(edu.msoe.winplotterfx.WinPlotterFX plotter)
A method that draws the Labeled Triangle using the WinPlotterFX
|
setColor, setPenColor
public LabeledTriangle(double x, double y, double base, double height, javafx.scene.paint.Color color, java.lang.String name)
x
- The lower left corner x-value of the Triangley
- The lower left corner y-value of the Trianglebase
- The length of the base of the Triangleheight
- The height of the Trianglecolor
- The color of the Trianglename
- the text assigned to the label