|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.concurrent.CopyOnWriteArrayList<Layer>
gov.nasa.worldwind.layers.LayerList
public class LayerList
| Constructor Summary | |
|---|---|
LayerList()
|
|
LayerList(Layer[] layers)
|
|
LayerList(LayerList layerList)
|
|
| Method Summary | |
|---|---|
void |
add(int index,
Layer layer)
|
boolean |
add(Layer layer)
|
boolean |
addAll(Collection<? extends Layer> layers)
|
boolean |
addAll(int i,
Collection<? extends Layer> layers)
|
int |
addAllAbsent(Collection<? extends Layer> layers)
|
boolean |
addIfAbsent(Layer layer)
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds the specified all-property property change listener that will be called for all list changes. |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Adds a property change listener for the specified key. |
AVList |
clearList()
|
static LayerList |
collapseLists(LayerList[] lists)
Aggregate the contents of a group of layer lists into a single one. |
AVList |
copy()
Returns a shallow copy of this AVList instance: the keys and values themselves are not cloned. |
void |
firePropertyChange(PropertyChangeEvent propertyChangeEvent)
Calls all registered property change listeners with the specified property change event. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Calls all property change listeners associated with the specified key. |
String |
getDisplayName()
|
Set<Map.Entry<String,Object>> |
getEntries()
|
Layer |
getLayerByName(String name)
|
static List<Layer> |
getLayersAdded(LayerList oldList,
LayerList newList)
|
List<Layer> |
getLayersByClass(Class classToFind)
|
static List<Layer> |
getLayersRemoved(LayerList oldList,
LayerList newList)
|
static List<Layer> |
getListDifference(LayerList oldList,
LayerList newList)
|
String |
getStringValue(String key)
Returns the value for a specified key. |
Object |
getValue(String key)
Returns the value for a specified key. |
Collection<Object> |
getValues()
|
boolean |
hasKey(String key)
Indicates whether a key is in the collection. |
protected LayerList |
makeShallowCopy(LayerList sourceList)
|
boolean |
moveHigher(Layer targetLayer)
|
boolean |
moveLower(Layer targetLayer)
|
void |
onMessage(Message message)
Invoked when a message is received. |
void |
propertyChange(PropertyChangeEvent propertyChangeEvent)
|
Layer |
remove(int index)
|
void |
remove(Layer layer)
|
boolean |
remove(Object o)
|
boolean |
removeAll()
|
boolean |
removeAll(Collection<?> objects)
|
Object |
removeKey(String key)
Removes a specified key from the collection if the key exists, otherwise returns without affecting the collection. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the specified all-property property change listener. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Removes a property change listener associated with the specified key. |
void |
replaceAll(Collection<? extends Layer> layers)
|
boolean |
retainAll(Collection<?> objects)
|
Layer |
set(int index,
Layer layer)
|
void |
setDisplayName(String displayName)
|
Object |
setValue(String key,
Object value)
Adds a key/value pair to the list. |
AVList |
setValues(AVList avList)
Adds the contents of another attribute-value list to the list. |
LayerList |
sort()
|
String |
toString()
|
| Methods inherited from class java.util.concurrent.CopyOnWriteArrayList |
|---|
clear, clone, contains, containsAll, equals, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, size, subList, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LayerList()
public LayerList(Layer[] layers)
public LayerList(LayerList layerList)
| Method Detail |
|---|
public void add(int index,
Layer layer)
add in interface List<Layer>add in class CopyOnWriteArrayList<Layer>public boolean add(Layer layer)
add in interface Collection<Layer>add in interface List<Layer>add in class CopyOnWriteArrayList<Layer>public boolean addAll(Collection<? extends Layer> layers)
addAll in interface Collection<Layer>addAll in interface List<Layer>addAll in class CopyOnWriteArrayList<Layer>
public boolean addAll(int i,
Collection<? extends Layer> layers)
addAll in interface List<Layer>addAll in class CopyOnWriteArrayList<Layer>public int addAllAbsent(Collection<? extends Layer> layers)
addAllAbsent in class CopyOnWriteArrayList<Layer>public boolean addIfAbsent(Layer layer)
addIfAbsent in class CopyOnWriteArrayList<Layer>public void addPropertyChangeListener(PropertyChangeListener listener)
AVList
addPropertyChangeListener in interface AVListlistener - the listener to call.PropertyChangeSupport
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
AVList
addPropertyChangeListener in interface AVListpropertyName - the key to associate the listener with.listener - the listener to associate with the key.PropertyChangeSupportpublic AVList clearList()
clearList in interface AVListpublic static LayerList collapseLists(LayerList[] lists)
lists - an array containing the lists to aggregate. All members of the second and subsequent lists in the
array are added to the first list in the array.
IllegalArgumentException - if the layer-lists array is null or empty.public AVList copy()
AVListAVList instance: the keys and values themselves are not cloned.
copy in interface AVListAVList.public void firePropertyChange(PropertyChangeEvent propertyChangeEvent)
AVList
firePropertyChange in interface AVListpropertyChangeEvent - the eventPropertyChangeSupport
public void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
AVListodValue and newValue are equal and non-null.
firePropertyChange in interface AVListpropertyName - the keyoldValue - the value associated with the key before the even causing the firing.newValue - the new value associated with the key.PropertyChangeSupportpublic String getDisplayName()
public Set<Map.Entry<String,Object>> getEntries()
getEntries in interface AVListpublic Layer getLayerByName(String name)
public static List<Layer> getLayersAdded(LayerList oldList,
LayerList newList)
public List<Layer> getLayersByClass(Class classToFind)
public static List<Layer> getLayersRemoved(LayerList oldList,
LayerList newList)
public static List<Layer> getListDifference(LayerList oldList,
LayerList newList)
public String getStringValue(String key)
AVListString.
getStringValue in interface AVListkey - the attribute name. May not be null.
null.public Object getValue(String key)
AVList
getValue in interface AVListkey - the attribute name. May not be null.
null.public Collection<Object> getValues()
getValues in interface AVListpublic boolean hasKey(String key)
AVList
hasKey in interface AVListkey - the attribute name. May not be null.
true if the key exists in the collection, otherwise false.protected LayerList makeShallowCopy(LayerList sourceList)
public boolean moveHigher(Layer targetLayer)
public boolean moveLower(Layer targetLayer)
public void onMessage(Message message)
MessageListener
onMessage in interface MessageListenermessage - The message that was received.public void propertyChange(PropertyChangeEvent propertyChangeEvent)
propertyChange in interface PropertyChangeListenerpublic Layer remove(int index)
remove in interface List<Layer>remove in class CopyOnWriteArrayList<Layer>public void remove(Layer layer)
public boolean remove(Object o)
remove in interface Collection<Layer>remove in interface List<Layer>remove in class CopyOnWriteArrayList<Layer>public boolean removeAll()
public boolean removeAll(Collection<?> objects)
removeAll in interface Collection<Layer>removeAll in interface List<Layer>removeAll in class CopyOnWriteArrayList<Layer>public Object removeKey(String key)
AVList
removeKey in interface AVListkey - the attribute name. May not be null.
public void removePropertyChangeListener(PropertyChangeListener listener)
AVList
removePropertyChangeListener in interface AVListlistener - the listener to remove.PropertyChangeSupport
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
AVList
removePropertyChangeListener in interface AVListpropertyName - the key associated with the change listener.listener - the listener to remove.PropertyChangeSupportpublic void replaceAll(Collection<? extends Layer> layers)
public boolean retainAll(Collection<?> objects)
retainAll in interface Collection<Layer>retainAll in interface List<Layer>retainAll in class CopyOnWriteArrayList<Layer>
public Layer set(int index,
Layer layer)
set in interface List<Layer>set in class CopyOnWriteArrayList<Layer>public void setDisplayName(String displayName)
public Object setValue(String key,
Object value)
AVList
setValue in interface AVListkey - the attribute name. May not be null.value - the attribute value. May be null, in which case any existing value for the key is
removed from the collection.
public AVList setValues(AVList avList)
AVList
setValues in interface AVListavList - the list to copy. May not be null.
this, a self reference.public LayerList sort()
public String toString()
toString in class CopyOnWriteArrayList<Layer>
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||