Class Polygon

com.yandex.mapkit.geometry

java.lang.Object ⇽ Polygon

public class Polygon

A polygon with one or more polygons in it.

The exterior and interior areas are specified using LinearRing.

Constructors

Polygon()

Use constructor with parameters in your code.

Polygon(@NonNull LinearRing outerRing, @NonNull List< LinearRing > innerRings)

Methods

synchronized List< LinearRing > getInnerRings()

The list of rings in the specified area.

String getNativeName()
synchronized LinearRing getOuterRing()

The ring specifying the area.

void serialize(Archive archive)

Constructor Detail

Polygon

public Polygon ()

Use constructor with parameters in your code.

This one is for serialization only!

Polygon

public Polygon (@NonNull LinearRing outerRing, @NonNull List< LinearRing > innerRings)

Method Detail

getInnerRings

public synchronized List< LinearRing > getInnerRings ()

The list of rings in the specified area.

getNativeName

public static String getNativeName ()

getOuterRing

public synchronized LinearRing getOuterRing ()

The ring specifying the area.

serialize

public void serialize (Archive archive)