|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.concurrent.CopyOnWriteArrayList<Layer> com.esri.map.LayerList
public class LayerList
Constructor Summary | |
---|---|
LayerList()
Instantiates a new, empty layer list. |
|
LayerList(Collection<? extends Layer> c)
Instantiates a new layer list with the given collection. |
|
LayerList(Layer[] toCopyIn)
Instantiates a new layer list with the given Layers |
Method Summary | |
---|---|
void |
add(int index,
Layer element)
Adds the given layer to this layer list at the given index. |
boolean |
add(Layer e)
Adds the given layer to this layer list and hence the Map to which this list belongs. |
boolean |
addAll(Collection<? extends Layer> c)
Adds all supplied layer to this layer list. |
boolean |
addAll(int index,
Collection<? extends Layer> c)
Adds all supplied layer to this layer list at the given index. |
int |
addAllAbsent(Collection<? extends Layer> c)
Adds each supplied layer to this layer list if it is not already in this layer list. |
boolean |
addIfAbsent(Layer e)
Adds the supplied layer to this layer list if it is not already in this layer list. |
void |
addLayerListEventListener(LayerListEventListener listener)
Adds the layer list event listener. |
void |
clear()
Removes, that is clears all from this layers list. |
protected void |
fireLayerAdded(Layer layer,
int index)
|
protected void |
fireLayerRemoved(Layer layer,
int index)
|
protected void |
fireMultipleLayersAdded(Map<Integer,Layer> layers)
|
protected void |
fireMultipleLayersRemoved(Map<Integer,Layer> layers)
|
Layer |
remove(int index)
Removes any layer at the given index and hence removes the layer from the Map which owns this layer list. |
boolean |
remove(Object o)
Removes the given layer. |
boolean |
removeAll(Collection<?> c)
Removes (that is clears) given layers from this layers list. |
void |
removeLayerListEventListener(LayerListEventListener listener)
Removes the layer list event listener. |
boolean |
retainAll(Collection<?> c)
Retains the given layers in this layers list and removes all others; that is any layer not given. |
Layer |
set(int index,
Layer element)
Sets the given layer at the given index. |
Methods inherited from class java.util.concurrent.CopyOnWriteArrayList |
---|
clone, contains, containsAll, equals, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, size, subList, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LayerList()
public LayerList(Collection<? extends Layer> c)
c
- the collection of layerspublic LayerList(Layer[] toCopyIn)
toCopyIn
- the layers to copy in to this new LayerListMethod Detail |
---|
public void addLayerListEventListener(LayerListEventListener listener)
listener
- the listenerpublic void removeLayerListEventListener(LayerListEventListener listener)
listener
- the listenerpublic Layer set(int index, Layer element)
set
in interface List<Layer>
set
in class CopyOnWriteArrayList<Layer>
index
- the index at which to put this layerelement
- the layer to usepublic boolean add(Layer e)
add
in interface Collection<Layer>
add
in interface List<Layer>
add
in class CopyOnWriteArrayList<Layer>
e
- the layer to addpublic void add(int index, Layer element)
add
in interface List<Layer>
add
in class CopyOnWriteArrayList<Layer>
e
- the layer to addadd(Layer)
public Layer remove(int index)
remove
in interface List<Layer>
remove
in class CopyOnWriteArrayList<Layer>
index
- the index from which to remove a layerpublic boolean remove(Object o)
remove
in interface Collection<Layer>
remove
in interface List<Layer>
remove
in class CopyOnWriteArrayList<Layer>
object
- the layerpublic boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Layer>
removeAll
in interface List<Layer>
removeAll
in class CopyOnWriteArrayList<Layer>
c
- the layerspublic void clear()
clear
in interface Collection<Layer>
clear
in interface List<Layer>
clear
in class CopyOnWriteArrayList<Layer>
public boolean addIfAbsent(Layer e)
addIfAbsent
in class CopyOnWriteArrayList<Layer>
e
- the layeradd(Layer)
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<Layer>
retainAll
in interface List<Layer>
retainAll
in class CopyOnWriteArrayList<Layer>
c
- the layers to keeppublic int addAllAbsent(Collection<? extends Layer> c)
addAllAbsent
in class CopyOnWriteArrayList<Layer>
c
- the layers to addadd(Layer)
public boolean addAll(Collection<? extends Layer> c)
addAll
in interface Collection<Layer>
addAll
in interface List<Layer>
addAll
in class CopyOnWriteArrayList<Layer>
c
- the layers to addadd(Layer)
public boolean addAll(int index, Collection<? extends Layer> c)
addAll
in interface List<Layer>
addAll
in class CopyOnWriteArrayList<Layer>
c
- the layers to addadd(Layer)
protected void fireLayerAdded(Layer layer, int index)
protected void fireMultipleLayersAdded(Map<Integer,Layer> layers)
protected void fireLayerRemoved(Layer layer, int index)
protected void fireMultipleLayersRemoved(Map<Integer,Layer> layers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |