Class LatLngArray
java.lang.Object
java.util.AbstractCollection<LatLng>
java.util.AbstractList<LatLng>
java.util.ArrayList<LatLng>
org.vaadin.addons.componentfactory.leaflet.layer.vectors.structure.LatLngArray
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<LatLng>,Collection<LatLng>,List<LatLng>,RandomAccess,SequencedCollection<LatLng>,GeometryStructure
Represents list of LatLng coordinates
- Since:
- 2020-03-23
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionLatLngArray(List<LatLng> latlngs) Creates a new array containing the given list of LatLng coordinates.LatLngArray(LatLng[] latlngs) Creates a new array containing the given LatLng coordinates. -
Method Summary
Modifier and TypeMethodDescriptionCalculate the boundary of this geometry structureMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.vectors.structure.GeometryStructure
isEmptyMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
LatLngArray
Creates a new array containing the given LatLng coordinates.- Parameters:
latlngs- the coordinates to add to this array
-
LatLngArray
Creates a new array containing the given list of LatLng coordinates.- Parameters:
latlngs- the coordinates to add to this array
-
-
Method Details
-
getBounds
Calculate the boundary of this geometry structure- Specified by:
getBoundsin interfaceGeometryStructure- Returns:
- the
LatLngBoundsof the geometry
-