Class 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 Detail

      • addListChangedListener

        public void addListChangedListener​(ListChangedListener<ElevationSource> listener)
        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 interface ListenableList<ElevationSource>
        Parameters:
        listener - this listener will be called back when items are added to or removed from the list
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<ElevationSource>
        Specified by:
        size in interface java.util.List<ElevationSource>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<ElevationSource>
        Specified by:
        isEmpty in interface java.util.List<ElevationSource>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<ElevationSource>
        Specified by:
        contains in interface java.util.List<ElevationSource>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<ElevationSource>
        Specified by:
        toArray in interface java.util.List<ElevationSource>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<ElevationSource>
        Specified by:
        toArray in interface java.util.List<ElevationSource>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<ElevationSource>
        Specified by:
        remove in interface java.util.List<ElevationSource>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<ElevationSource>
        Specified by:
        containsAll in interface java.util.List<ElevationSource>
      • addAll

        public boolean addAll​(java.util.Collection<? extends ElevationSource> c)
        Specified by:
        addAll in interface java.util.Collection<ElevationSource>
        Specified by:
        addAll in interface java.util.List<ElevationSource>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends ElevationSource> c)
        Specified by:
        addAll in interface java.util.List<ElevationSource>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<ElevationSource>
        Specified by:
        removeAll in interface java.util.List<ElevationSource>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<ElevationSource>
        Specified by:
        retainAll in interface java.util.List<ElevationSource>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<ElevationSource>
        Specified by:
        clear in interface java.util.List<ElevationSource>
      • indexOf

        public int indexOf​(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List<ElevationSource>
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List<ElevationSource>
      • listIterator

        public java.util.ListIterator<ElevationSource> listIterator()
        Specified by:
        listIterator in interface java.util.List<ElevationSource>
      • listIterator

        public java.util.ListIterator<ElevationSource> listIterator​(int index)
        Specified by:
        listIterator in interface java.util.List<ElevationSource>
      • subList

        public java.util.List<ElevationSource> subList​(int fromIndex,
                                                       int toIndex)
        Specified by:
        subList in interface java.util.List<ElevationSource>