public static class DefaultPolygon.Builder extends Object implements Polygon.Builder
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DefaultPolygon.Builder |
addRing(Point p1,
Point p2,
Point p3,
Point... pn)
Adds a new ring for this polygon.
|
Polygon |
build()
Builds the polygon.
|
@NonNull public DefaultPolygon.Builder addRing(@NonNull Point p1, @NonNull Point p2, @NonNull Point p3, @NonNull Point... pn)
Polygon.Builder
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.
addRing
in interface Polygon.Builder
@NonNull public Polygon build()
build
in interface Polygon.Builder
Copyright © 2017–2019. All rights reserved.