Package com.esri.arcgisruntime.symbology
Class DistanceCompositeSceneSymbol.RangeCollection
- java.lang.Object
-
- com.esri.arcgisruntime.symbology.DistanceCompositeSceneSymbol.RangeCollection
-
- All Implemented Interfaces:
ListenableList<DistanceCompositeSceneSymbol.Range>
,Iterable<DistanceCompositeSceneSymbol.Range>
,Collection<DistanceCompositeSceneSymbol.Range>
,List<DistanceCompositeSceneSymbol.Range>
- Enclosing class:
- DistanceCompositeSceneSymbol
public static final class DistanceCompositeSceneSymbol.RangeCollection extends Object implements ListenableList<DistanceCompositeSceneSymbol.Range>
Represents a list ofDistanceCompositeSceneSymbol.Range
s which link a Symbol to a minimum and maximum distance, in meters, from the SceneView's Camera which the Symbol is visible between.Ranges in a RangeCollection can have the same minimum and maximum distance. They can also have overlapping distances, which will cause any Symbol to be displayed if SceneView's Camera is within that distance.
This class is not creatable but an instance is returned from
DistanceCompositeSceneSymbol.getRangeCollection()
. Adding and removing Ranges from this list can be observed by adding a ListChangedListener.Example of accessing a RangeCollection from a DistanceCompositeSceneSymbol. After accessing the RangeCollection, Ranges can be added or removed.
DistanceCompositeSceneSymbol composite = new DistanceCompositeSceneSymbol(); RangeCollection collection = composite.getRangeCollection(); SimpleMarkerSymbol crossSymbol = new SimpleMarkerSymbol(Style.CROSS, 0xFF00FF00, 40); Range range = new Range(cross2D, 0, 2000)); collection.add(range);
- Since:
- 100.0.0 for JavaSE and 100.1.0 for Android
- See Also:
ListenableList
,ListChangedListener
,DistanceCompositeSceneSymbol.Range
,DistanceCompositeSceneSymbol.getRangeCollection()
-
-
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
-
add
public void add(int index, DistanceCompositeSceneSymbol.Range range)
- Specified by:
add
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
add
public boolean add(DistanceCompositeSceneSymbol.Range range)
- Specified by:
add
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
add
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
addAll
public boolean addAll(int index, Collection<? extends DistanceCompositeSceneSymbol.Range> collection)
- Specified by:
addAll
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
addAll
public boolean addAll(Collection<? extends DistanceCompositeSceneSymbol.Range> collection)
- Specified by:
addAll
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
addAll
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
clear
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
contains
public boolean contains(Object object)
- Specified by:
contains
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
contains
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
containsAll
public boolean containsAll(Collection<?> collection)
- Specified by:
containsAll
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
containsAll
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
get
public DistanceCompositeSceneSymbol.Range get(int index)
- Specified by:
get
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
indexOf
public int indexOf(Object object)
- Specified by:
indexOf
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
isEmpty
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
iterator
public Iterator<DistanceCompositeSceneSymbol.Range> iterator()
- Specified by:
iterator
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
iterator
in interfaceIterable<DistanceCompositeSceneSymbol.Range>
- Specified by:
iterator
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
lastIndexOf
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
listIterator
public ListIterator<DistanceCompositeSceneSymbol.Range> listIterator()
- Specified by:
listIterator
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
listIterator
public ListIterator<DistanceCompositeSceneSymbol.Range> listIterator(int index)
- Specified by:
listIterator
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
remove
public DistanceCompositeSceneSymbol.Range remove(int index)
- Specified by:
remove
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
remove
public boolean remove(Object object)
- Specified by:
remove
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
remove
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
removeAll
public boolean removeAll(Collection<?> collection)
- Specified by:
removeAll
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
removeAll
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
retainAll
public boolean retainAll(Collection<?> collection)
- Specified by:
retainAll
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
retainAll
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
set
public DistanceCompositeSceneSymbol.Range set(int index, DistanceCompositeSceneSymbol.Range range)
- Specified by:
set
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
size
public int size()
- Specified by:
size
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
size
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
subList
public List<DistanceCompositeSceneSymbol.Range> subList(int start, int end)
- Specified by:
subList
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
toArray
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArray
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
toArray
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
addListChangedListener
public void addListChangedListener(ListChangedListener<DistanceCompositeSceneSymbol.Range> 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 interfaceListenableList<DistanceCompositeSceneSymbol.Range>
- Parameters:
listener
- this listener will be called back when items are added to or removed from the list
-
removeListChangedListener
public boolean removeListChangedListener(ListChangedListener<DistanceCompositeSceneSymbol.Range> listener)
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<DistanceCompositeSceneSymbol.Range>
- Parameters:
listener
- listener to remove- Returns:
- true if the listenable list contained the given listener, false otherwise
-
-