Module com.esri.arcgisruntime
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>
,SequencedCollection<ElevationSource>
,Observable
,ObservableList<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 listener.
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
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int index, ElevationSource element) boolean
add
(ElevationSource elevationSource) boolean
addAll
(int index, Collection<? extends ElevationSource> c) boolean
addAll
(ElevationSource... elements) boolean
addAll
(Collection<? extends ElevationSource> c) void
Adds a listener for added and removed events.void
addListener
(InvalidationListener listener) void
addListener
(ListChangeListener<? super ElevationSource> listener) void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) void
remove
(int from, int to) boolean
boolean
removeAll
(ElevationSource... elements) boolean
removeAll
(Collection<?> c) boolean
Removes the given listener from this class instance.void
removeListener
(InvalidationListener listener) void
removeListener
(ListChangeListener<? super ElevationSource> listener) boolean
retainAll
(ElevationSource... elements) boolean
retainAll
(Collection<?> c) set
(int index, ElevationSource element) boolean
setAll
(ElevationSource... elements) boolean
setAll
(Collection<? extends ElevationSource> col) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<T> T[]
toArray
(T[] a) 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
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
Methods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Method Details
-
addListChangedListener
Description copied from interface:ListenableList
Adds 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:
addListChangedListener
in interfaceListenableList<ElevationSource>
- Parameters:
listener
- this listener will be called back when items are added to or removed from the list
-
removeListChangedListener
Description copied from interface:ListenableList
Removes the given listener from this class instance. It will no longer receive added or removed events.- Specified by:
removeListChangedListener
in 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:
size
in interfaceCollection<ElevationSource>
- Specified by:
size
in interfaceList<ElevationSource>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<ElevationSource>
- Specified by:
isEmpty
in interfaceList<ElevationSource>
-
contains
- Specified by:
contains
in interfaceCollection<ElevationSource>
- Specified by:
contains
in interfaceList<ElevationSource>
-
iterator
- Specified by:
iterator
in interfaceCollection<ElevationSource>
- Specified by:
iterator
in interfaceIterable<ElevationSource>
- Specified by:
iterator
in interfaceList<ElevationSource>
-
toArray
- Specified by:
toArray
in interfaceCollection<ElevationSource>
- Specified by:
toArray
in interfaceList<ElevationSource>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<ElevationSource>
- Specified by:
toArray
in interfaceList<ElevationSource>
-
add
- Specified by:
add
in interfaceCollection<ElevationSource>
- Specified by:
add
in interfaceList<ElevationSource>
-
remove
- Specified by:
remove
in interfaceCollection<ElevationSource>
- Specified by:
remove
in interfaceList<ElevationSource>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<ElevationSource>
- Specified by:
containsAll
in interfaceList<ElevationSource>
-
addAll
- Specified by:
addAll
in interfaceCollection<ElevationSource>
- Specified by:
addAll
in interfaceList<ElevationSource>
-
addAll
- Specified by:
addAll
in interfaceList<ElevationSource>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<ElevationSource>
- Specified by:
removeAll
in interfaceList<ElevationSource>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<ElevationSource>
- Specified by:
retainAll
in interfaceList<ElevationSource>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<ElevationSource>
- Specified by:
clear
in interfaceList<ElevationSource>
-
get
- Specified by:
get
in interfaceList<ElevationSource>
-
set
- Specified by:
set
in interfaceList<ElevationSource>
-
add
- Specified by:
add
in interfaceList<ElevationSource>
-
remove
- Specified by:
remove
in interfaceList<ElevationSource>
-
indexOf
- Specified by:
indexOf
in interfaceList<ElevationSource>
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<ElevationSource>
-
listIterator
- Specified by:
listIterator
in interfaceList<ElevationSource>
-
listIterator
- Specified by:
listIterator
in interfaceList<ElevationSource>
-
subList
- Specified by:
subList
in interfaceList<ElevationSource>
-
addListener
- Specified by:
addListener
in interfaceObservableList<ElevationSource>
-
removeListener
- Specified by:
removeListener
in interfaceObservableList<ElevationSource>
-
addAll
- Specified by:
addAll
in interfaceObservableList<ElevationSource>
-
setAll
- Specified by:
setAll
in interfaceObservableList<ElevationSource>
-
setAll
- Specified by:
setAll
in interfaceObservableList<ElevationSource>
-
removeAll
- Specified by:
removeAll
in interfaceObservableList<ElevationSource>
-
retainAll
- Specified by:
retainAll
in interfaceObservableList<ElevationSource>
-
remove
public void remove(int from, int to) - Specified by:
remove
in interfaceObservableList<ElevationSource>
-
addListener
- Specified by:
addListener
in interfaceObservable
-
removeListener
- Specified by:
removeListener
in interfaceObservable
-