Package com.esri.arcgisruntime.symbology
Class DistanceCompositeSceneSymbol.RangeCollection
- java.lang.Object
-
- com.esri.arcgisruntime.symbology.DistanceCompositeSceneSymbol.RangeCollection
-
- All Implemented Interfaces:
ListenableList<DistanceCompositeSceneSymbol.Range>
,java.lang.Iterable<DistanceCompositeSceneSymbol.Range>
,java.util.Collection<DistanceCompositeSceneSymbol.Range>
,java.util.List<DistanceCompositeSceneSymbol.Range>
- Enclosing class:
- DistanceCompositeSceneSymbol
public static final class DistanceCompositeSceneSymbol.RangeCollection extends java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, DistanceCompositeSceneSymbol.Range range)
boolean
add(DistanceCompositeSceneSymbol.Range range)
boolean
addAll(int index, java.util.Collection<? extends DistanceCompositeSceneSymbol.Range> collection)
boolean
addAll(java.util.Collection<? extends DistanceCompositeSceneSymbol.Range> collection)
void
addListChangedListener(ListChangedListener<DistanceCompositeSceneSymbol.Range> listener)
Adds a listener for added and removed events.void
clear()
boolean
contains(java.lang.Object object)
boolean
containsAll(java.util.Collection<?> collection)
DistanceCompositeSceneSymbol.Range
get(int index)
int
indexOf(java.lang.Object object)
boolean
isEmpty()
java.util.Iterator<DistanceCompositeSceneSymbol.Range>
iterator()
int
lastIndexOf(java.lang.Object object)
java.util.ListIterator<DistanceCompositeSceneSymbol.Range>
listIterator()
java.util.ListIterator<DistanceCompositeSceneSymbol.Range>
listIterator(int index)
DistanceCompositeSceneSymbol.Range
remove(int index)
boolean
remove(java.lang.Object object)
boolean
removeAll(java.util.Collection<?> collection)
boolean
removeListChangedListener(ListChangedListener<DistanceCompositeSceneSymbol.Range> listener)
Removes the given listener from this class instance.boolean
retainAll(java.util.Collection<?> collection)
DistanceCompositeSceneSymbol.Range
set(int index, DistanceCompositeSceneSymbol.Range range)
int
size()
java.util.List<DistanceCompositeSceneSymbol.Range>
subList(int start, int end)
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] array)
-
-
-
Method Detail
-
add
public void add(int index, DistanceCompositeSceneSymbol.Range range)
- Specified by:
add
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
add
public boolean add(DistanceCompositeSceneSymbol.Range range)
- Specified by:
add
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
add
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
addAll
public boolean addAll(int index, java.util.Collection<? extends DistanceCompositeSceneSymbol.Range> collection)
- Specified by:
addAll
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
addAll
public boolean addAll(java.util.Collection<? extends DistanceCompositeSceneSymbol.Range> collection)
- Specified by:
addAll
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
addAll
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
clear
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
contains
public boolean contains(java.lang.Object object)
- Specified by:
contains
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
contains
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
containsAll
public boolean containsAll(java.util.Collection<?> collection)
- Specified by:
containsAll
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
containsAll
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
get
public DistanceCompositeSceneSymbol.Range get(int index)
- Specified by:
get
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
indexOf
public int indexOf(java.lang.Object object)
- Specified by:
indexOf
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
isEmpty
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
iterator
public java.util.Iterator<DistanceCompositeSceneSymbol.Range> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
iterator
in interfacejava.lang.Iterable<DistanceCompositeSceneSymbol.Range>
- Specified by:
iterator
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
lastIndexOf
public int lastIndexOf(java.lang.Object object)
- Specified by:
lastIndexOf
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
listIterator
public java.util.ListIterator<DistanceCompositeSceneSymbol.Range> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
listIterator
public java.util.ListIterator<DistanceCompositeSceneSymbol.Range> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
remove
public DistanceCompositeSceneSymbol.Range remove(int index)
- Specified by:
remove
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
remove
public boolean remove(java.lang.Object object)
- Specified by:
remove
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
remove
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
removeAll
public boolean removeAll(java.util.Collection<?> collection)
- Specified by:
removeAll
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
removeAll
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
retainAll
public boolean retainAll(java.util.Collection<?> collection)
- Specified by:
retainAll
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
retainAll
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
set
public DistanceCompositeSceneSymbol.Range set(int index, DistanceCompositeSceneSymbol.Range range)
- Specified by:
set
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
size
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
subList
public java.util.List<DistanceCompositeSceneSymbol.Range> subList(int start, int end)
- Specified by:
subList
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
toArray
in interfacejava.util.List<DistanceCompositeSceneSymbol.Range>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArray
in interfacejava.util.Collection<DistanceCompositeSceneSymbol.Range>
- Specified by:
toArray
in interfacejava.util.List<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
-
-