A circle.
Polygon
Here are some Polygon
constructors.
For details, look at the Oracle documentation.
Polygon() Creates an empty Polygon. Polygon(double... points) Creates a Polygon with vertices in the list. Each pair of points are the X, Y coordinates of a vertex. The contained in an array of double.
Here are some methods inherited from Shape
:
public final void setFill(Paint value) Set the color for the fill. public final Paint getFill() Get the color of the fill. public final void setStroke(Paint value) Set the color for the stroke public final Paint getStroke() Get the color of the stroke public final void setStrokeWidth(double value) Set the width of the stroke, in pixels public final Paint getStrokeWidth() Gets the width of the stroke, in pixels
How could you draw the following shape?