Module com.esri.arcgisruntime
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>
,SequencedCollection<DistanceCompositeSceneSymbol.Range>
,Observable
,ObservableList<DistanceCompositeSceneSymbol.Range>
- Enclosing class:
DistanceCompositeSceneSymbol
public static final class DistanceCompositeSceneSymbol.RangeCollection
extends Object
implements ListenableList<DistanceCompositeSceneSymbol.Range>
Represents a list of
DistanceCompositeSceneSymbol.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 listener.
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
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int index, DistanceCompositeSceneSymbol.Range range) boolean
boolean
addAll
(int index, Collection<? extends DistanceCompositeSceneSymbol.Range> collection) boolean
addAll
(DistanceCompositeSceneSymbol.Range... elements) boolean
addAll
(Collection<? extends DistanceCompositeSceneSymbol.Range> collection) void
Adds a listener for added and removed events.void
addListener
(InvalidationListener listener) void
addListener
(ListChangeListener<? super DistanceCompositeSceneSymbol.Range> listener) void
clear()
boolean
boolean
containsAll
(Collection<?> collection) get
(int index) int
boolean
isEmpty()
iterator()
int
lastIndexOf
(Object object) listIterator
(int index) remove
(int index) void
remove
(int from, int to) boolean
boolean
removeAll
(DistanceCompositeSceneSymbol.Range... elements) boolean
removeAll
(Collection<?> collection) boolean
Removes the given listener from this class instance.void
removeListener
(InvalidationListener listener) void
removeListener
(ListChangeListener<? super DistanceCompositeSceneSymbol.Range> listener) boolean
retainAll
(DistanceCompositeSceneSymbol.Range... elements) boolean
retainAll
(Collection<?> collection) set
(int index, DistanceCompositeSceneSymbol.Range range) boolean
setAll
(DistanceCompositeSceneSymbol.Range... elements) boolean
setAll
(Collection<? extends DistanceCompositeSceneSymbol.Range> col) int
size()
subList
(int start, int end) Object[]
toArray()
<T> T[]
toArray
(T[] array) 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
-
add
- Specified by:
add
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
add
- 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
- 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
- Specified by:
contains
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
contains
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
containsAll
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
get
- Specified by:
get
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
indexOf
- 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
- Specified by:
iterator
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
iterator
in interfaceIterable<DistanceCompositeSceneSymbol.Range>
- Specified by:
iterator
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
listIterator
- Specified by:
listIterator
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
listIterator
- Specified by:
listIterator
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
remove
- Specified by:
remove
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
remove
- Specified by:
remove
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
remove
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
removeAll
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<DistanceCompositeSceneSymbol.Range>
- Specified by:
retainAll
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
set
- 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
- Specified by:
subList
in interfaceList<DistanceCompositeSceneSymbol.Range>
-
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
-
addListener
- Specified by:
addListener
in interfaceObservableList<DistanceCompositeSceneSymbol.Range>
-
removeListener
- Specified by:
removeListener
in interfaceObservableList<DistanceCompositeSceneSymbol.Range>
-
addAll
- Specified by:
addAll
in interfaceObservableList<DistanceCompositeSceneSymbol.Range>
-
setAll
- Specified by:
setAll
in interfaceObservableList<DistanceCompositeSceneSymbol.Range>
-
setAll
- Specified by:
setAll
in interfaceObservableList<DistanceCompositeSceneSymbol.Range>
-
removeAll
- Specified by:
removeAll
in interfaceObservableList<DistanceCompositeSceneSymbol.Range>
-
retainAll
- Specified by:
retainAll
in interfaceObservableList<DistanceCompositeSceneSymbol.Range>
-
remove
public void remove(int from, int to) - Specified by:
remove
in interfaceObservableList<DistanceCompositeSceneSymbol.Range>
-
addListener
- Specified by:
addListener
in interfaceObservable
-
removeListener
- Specified by:
removeListener
in interfaceObservable
-