public class Polygon extends PolyShape
Constructor and Description |
---|
Polygon()
Create a new orange, filled polygon, initially with no vertices.
|
Polygon(java.awt.Color c,
boolean filled)
Create a new polygon of the given color and filledness,
initially with no vertices.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
java.lang.String |
toString()
Answer the printed representation of this shape.
|
addTo, currentWindow, getBoundingBox, getCenterX, getCenterY, getColor, getHeight, getWidth, getX, getY, intersects, moveBy, recordWindow, removeFromWindow, setColor
public Polygon()
public Polygon(java.awt.Color c, boolean filled)
c
- the color of the polygonfilled
- should it be filled?