Package com.esri.arcgisruntime.mapping
Class Surface.ElevationSourceList
- java.lang.Object
-
- com.esri.arcgisruntime.mapping.Surface.ElevationSourceList
-
- All Implemented Interfaces:
ListenableList<ElevationSource>,Iterable<ElevationSource>,Collection<ElevationSource>,List<ElevationSource>
- Enclosing class:
- Surface
public static final class Surface.ElevationSourceList extends Object implements ListenableList<ElevationSource>
Represents the list of ElevationSources in a Surface.This class is not creatable but elevation sources can be added and removed. Changes to the list can be observed by adding a ListChangedListener.
If the elevation sources in the list are rendered in a SceneView, changes to the list will have an immediate effect on how elevation is rendered in that SceneView. If an elevation source is removed from the list it will disappear from the SceneView and vice versa if an elevation source is added to the list it will change the elevation rendering of the SceneView.
- Since:
- 100.0.0 for JavaSE and 100.1.0 for Android
- See Also:
ListenableList,ElevationSource
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
addListChangedListener
public void addListChangedListener(ListChangedListener<ElevationSource> listener)
Description copied from interface:ListenableListAdds a listener for added and removed events.Adding this listener on the UI thread will cause it to be invoked on the UI thread, otherwise it is not guaranteed on which thread the listener is invoked.
- Specified by:
addListChangedListenerin interfaceListenableList<ElevationSource>- Parameters:
listener- this listener will be called back when items are added to or removed from the list
-
removeListChangedListener
public boolean removeListChangedListener(ListChangedListener<ElevationSource> listener)
Description copied from interface:ListenableListRemoves the given listener from this class instance. It will no longer receive added or removed events.- Specified by:
removeListChangedListenerin interfaceListenableList<ElevationSource>- Parameters:
listener- listener to remove- Returns:
- true if the listenable list contained the given listener, false otherwise
-
size
public int size()
- Specified by:
sizein interfaceCollection<ElevationSource>- Specified by:
sizein interfaceList<ElevationSource>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<ElevationSource>- Specified by:
isEmptyin interfaceList<ElevationSource>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<ElevationSource>- Specified by:
containsin interfaceList<ElevationSource>
-
iterator
public Iterator<ElevationSource> iterator()
- Specified by:
iteratorin interfaceCollection<ElevationSource>- Specified by:
iteratorin interfaceIterable<ElevationSource>- Specified by:
iteratorin interfaceList<ElevationSource>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<ElevationSource>- Specified by:
toArrayin interfaceList<ElevationSource>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceCollection<ElevationSource>- Specified by:
toArrayin interfaceList<ElevationSource>
-
add
public boolean add(ElevationSource elevationSource)
- Specified by:
addin interfaceCollection<ElevationSource>- Specified by:
addin interfaceList<ElevationSource>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<ElevationSource>- Specified by:
removein interfaceList<ElevationSource>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<ElevationSource>- Specified by:
containsAllin interfaceList<ElevationSource>
-
addAll
public boolean addAll(Collection<? extends ElevationSource> c)
- Specified by:
addAllin interfaceCollection<ElevationSource>- Specified by:
addAllin interfaceList<ElevationSource>
-
addAll
public boolean addAll(int index, Collection<? extends ElevationSource> c)- Specified by:
addAllin interfaceList<ElevationSource>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<ElevationSource>- Specified by:
removeAllin interfaceList<ElevationSource>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<ElevationSource>- Specified by:
retainAllin interfaceList<ElevationSource>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<ElevationSource>- Specified by:
clearin interfaceList<ElevationSource>
-
get
public ElevationSource get(int index)
- Specified by:
getin interfaceList<ElevationSource>
-
set
public ElevationSource set(int index, ElevationSource element)
- Specified by:
setin interfaceList<ElevationSource>
-
add
public void add(int index, ElevationSource element)- Specified by:
addin interfaceList<ElevationSource>
-
remove
public ElevationSource remove(int index)
- Specified by:
removein interfaceList<ElevationSource>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOfin interfaceList<ElevationSource>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<ElevationSource>
-
listIterator
public ListIterator<ElevationSource> listIterator()
- Specified by:
listIteratorin interfaceList<ElevationSource>
-
listIterator
public ListIterator<ElevationSource> listIterator(int index)
- Specified by:
listIteratorin interfaceList<ElevationSource>
-
subList
public List<ElevationSource> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceList<ElevationSource>
-
-