Package com.esri.arcgisruntime.mapping
Class Surface.ElevationSourceList
- java.lang.Object
-
- com.esri.arcgisruntime.mapping.Surface.ElevationSourceList
-
- All Implemented Interfaces:
ListenableList<ElevationSource>,java.lang.Iterable<ElevationSource>,java.util.Collection<ElevationSource>,java.util.List<ElevationSource>
- Enclosing class:
- Surface
public static final class Surface.ElevationSourceList extends java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, ElevationSource element)booleanadd(ElevationSource elevationSource)booleanaddAll(int index, java.util.Collection<? extends ElevationSource> c)booleanaddAll(java.util.Collection<? extends ElevationSource> c)voidaddListChangedListener(ListChangedListener<ElevationSource> listener)Adds a listener for added and removed events.voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)ElevationSourceget(int index)intindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<ElevationSource>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<ElevationSource>listIterator()java.util.ListIterator<ElevationSource>listIterator(int index)ElevationSourceremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanremoveListChangedListener(ListChangedListener<ElevationSource> listener)Removes the given listener from this class instance.booleanretainAll(java.util.Collection<?> c)ElevationSourceset(int index, ElevationSource element)intsize()java.util.List<ElevationSource>subList(int fromIndex, int toIndex)java.lang.Object[]toArray()<T> T[]toArray(T[] a)
-
-
-
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 interfacejava.util.Collection<ElevationSource>- Specified by:
sizein interfacejava.util.List<ElevationSource>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Collection<ElevationSource>- Specified by:
isEmptyin interfacejava.util.List<ElevationSource>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
containsin interfacejava.util.Collection<ElevationSource>- Specified by:
containsin interfacejava.util.List<ElevationSource>
-
iterator
public java.util.Iterator<ElevationSource> iterator()
- Specified by:
iteratorin interfacejava.util.Collection<ElevationSource>- Specified by:
iteratorin interfacejava.lang.Iterable<ElevationSource>- Specified by:
iteratorin interfacejava.util.List<ElevationSource>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArrayin interfacejava.util.Collection<ElevationSource>- Specified by:
toArrayin interfacejava.util.List<ElevationSource>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfacejava.util.Collection<ElevationSource>- Specified by:
toArrayin interfacejava.util.List<ElevationSource>
-
add
public boolean add(ElevationSource elevationSource)
- Specified by:
addin interfacejava.util.Collection<ElevationSource>- Specified by:
addin interfacejava.util.List<ElevationSource>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
removein interfacejava.util.Collection<ElevationSource>- Specified by:
removein interfacejava.util.List<ElevationSource>
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAllin interfacejava.util.Collection<ElevationSource>- Specified by:
containsAllin interfacejava.util.List<ElevationSource>
-
addAll
public boolean addAll(java.util.Collection<? extends ElevationSource> c)
- Specified by:
addAllin interfacejava.util.Collection<ElevationSource>- Specified by:
addAllin interfacejava.util.List<ElevationSource>
-
addAll
public boolean addAll(int index, java.util.Collection<? extends ElevationSource> c)- Specified by:
addAllin interfacejava.util.List<ElevationSource>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAllin interfacejava.util.Collection<ElevationSource>- Specified by:
removeAllin interfacejava.util.List<ElevationSource>
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAllin interfacejava.util.Collection<ElevationSource>- Specified by:
retainAllin interfacejava.util.List<ElevationSource>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Collection<ElevationSource>- Specified by:
clearin interfacejava.util.List<ElevationSource>
-
get
public ElevationSource get(int index)
- Specified by:
getin interfacejava.util.List<ElevationSource>
-
set
public ElevationSource set(int index, ElevationSource element)
- Specified by:
setin interfacejava.util.List<ElevationSource>
-
add
public void add(int index, ElevationSource element)- Specified by:
addin interfacejava.util.List<ElevationSource>
-
remove
public ElevationSource remove(int index)
- Specified by:
removein interfacejava.util.List<ElevationSource>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<ElevationSource>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<ElevationSource>
-
listIterator
public java.util.ListIterator<ElevationSource> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<ElevationSource>
-
listIterator
public java.util.ListIterator<ElevationSource> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<ElevationSource>
-
subList
public java.util.List<ElevationSource> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfacejava.util.List<ElevationSource>
-
-