-
- All Implemented Interfaces:
-
com.google.android.gms.maps.GoogleMap.OnPolygonClickListener
public class PolygonManager extends MapObjectManager<Polygon, PolygonManager.Collection> implements GoogleMap.OnPolygonClickListener
Keeps track of collections of polygons on the map. Delegates all Polygon-related events to each collection's individually managed listeners.
All polygon operations (adds and removes) should occur via its collection class. That is, don't add a polygon via a collection, then remove it via Polygon.remove()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPolygonManager.Collection
-
Constructor Summary
Constructors Constructor Description PolygonManager(GoogleMap map)
-
Method Summary
Modifier and Type Method Description PolygonManager.CollectionnewCollection()voidonPolygonClick(@NonNull() Polygon polygon)-
Methods inherited from class com.google.maps.android.collections.MapObjectManager
getCollection, newCollection, newCollection, remove -
Methods inherited from class com.google.android.gms.maps.GoogleMap.OnPolygonClickListener
onPolygonClick -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
newCollection
PolygonManager.Collection newCollection()
-
onPolygonClick
void onPolygonClick(@NonNull() Polygon polygon)
-
-
-
-