public static interface Polygon.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() |
@NonNull Polygon.Builder addRing(@NonNull Point p1, @NonNull Point p2, @NonNull Point p3, @NonNull 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.
@NonNull Polygon build()
Copyright © 2017–2024. All rights reserved.