public class Polygon extends Object implements Iterable<Point>, Shape
Polygon.| Constructor and Description |
|---|
Polygon(List<? extends Point> points)
Creates a new
Polygon for the given Points. |
Polygon(Point x,
Point y,
Point z,
Point... others)
Creates a new
Polygon for the given Points. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<Point> |
getPoints()
|
int |
hashCode() |
Iterator<Point> |
iterator() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.