@JsType(isNative=true, namespace="Cesium", name="DataSourceCollection") public class DataSourceCollection<T extends DataSource> extends Collection<DataSource>
DataSource
instances.Constructor and Description |
---|
DataSourceCollection() |
Modifier and Type | Method and Description |
---|---|
Promise<T,Void> |
add(Promise<T,Void> dataSource)
Adds a data source to the collection.
|
Promise<T,Void> |
add(T dataSource)
Adds a data source to the collection.
|
Event |
dataSourceAdded()
An event that is raised when a data source is added to the collection.
|
Event |
dataSourceRemoved()
An event that is raised when a data source is removed from the collection.
|
int |
indexOf(T dataSource)
Determines the index of a given data source in the collection.
|
void |
lower(T dataSource)
Lowers a data source down one position in the collection.
|
void |
lowerToBottom(T dataSource)
Lowers a data source to the bottom of the collection.
|
void |
raise(T dataSource)
Raises a data source up one position in the collection.
|
void |
raiseToTop(T dataSource)
Raises a data source to the top of the collection.
|
boolean |
remove(T dataSource,
boolean destroy)
Removes a data source from this collection, if present.
|
void |
removeAll(boolean destroy)
Removes all data sources from this collection.
|
@JsProperty(name="dataSourceAdded") public Event dataSourceAdded()
@JsProperty(name="dataSourceRemoved") public Event dataSourceRemoved()
@JsMethod public Promise<T,Void> add(Promise<T,Void> dataSource)
dataSource
- A data source or a promise to a data source to add to the collection. When passing a promise,
the data source will not actually be added to the collection until the promise resolves successfully.@JsMethod public Promise<T,Void> add(T dataSource)
dataSource
- A data source or a promise to a data source to add to the collection. When passing a promise,
the data source will not actually be added to the collection until the promise resolves successfully.@JsMethod public int indexOf(T dataSource)
dataSource
- The data source to find the index of.@JsMethod public boolean remove(T dataSource, boolean destroy)
dataSource
- The data source to remove.destroy
- Whether to destroy the data source in addition to removing it. Default: false@JsMethod public void removeAll(boolean destroy)
destroy
- whether to destroy the data sources in addition to removing them. Default: false@JsMethod public void lower(T dataSource)
dataSource
- The data source to move.@JsMethod public void lowerToBottom(T dataSource)
dataSource
- The data source to move.@JsMethod public void raise(T dataSource)
dataSource
- The data source to move.@JsMethod public void raiseToTop(T dataSource)
dataSource
- The data source to move.Copyright © 2019. All rights reserved.