Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Polygon.Builder |
addRing(Point p1,
Point p2,
Point p3,
Point... pn)
Adds a new ring for this polygon.
|
Polygon |
build()
Builds the polygon.
|
public Polygon.Builder addRing(Point p1, Point p2, Point p3, Point... pn)
There can be one or more outer rings and zero or more inner rings. If a polygon has an inner ring, the inner ring looks like a hole. If the hole contains another outer ring, that outer ring looks like an island.
There must be one "main" outer ring that contains all the others.
p1
- the first point.p2
- the second point.p3
- the third point.pn
- additional points.public Polygon build()
Copyright © 2012–2018. All rights reserved.