|
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)
|
Method Summary | |
---|---|
void |
add(int index,
Layer layer)
|
boolean |
add(Layer layer)
|
boolean |
addAll(java.util.Collection<? extends Layer> layers)
|
boolean |
addAll(int i,
java.util.Collection<? extends Layer> layers)
|
int |
addAllAbsent(java.util.Collection<? extends Layer> layers)
|
boolean |
addIfAbsent(Layer layer)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the specified all-property property change listener that will be called for all list changes. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Adds a property change listener for the specified key. |
AVList |
clearList()
|
java.lang.Object |
clone()
|
AVList |
copy()
Returns a shallow copy of this AVList instance: the keys and values themselves are not cloned. |
void |
firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Calls all registered property change listeners with the specified property change event. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Calls all property change listeners associated with the specified key. |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
getEntries()
|
java.lang.String |
getStringValue(java.lang.String key)
Returns the value for a specified key. |
java.lang.Object |
getValue(java.lang.String key)
Returns the value for a specified key. |
java.util.Collection<java.lang.Object> |
getValues()
|
boolean |
hasKey(java.lang.String key)
Indicates whether a key is in the collection. |
void |
propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
|
Layer |
remove(int index)
|
void |
remove(Layer layer)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection<?> objects)
|
void |
removeKey(java.lang.String key)
Removes a specified key from the collection if the key exists, otherwise returns without affecting the collection. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the specified all-property property change listener. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes a property change listener associated with the specified key. |
boolean |
retainAll(java.util.Collection<?> objects)
|
Layer |
set(int index,
Layer layer)
|
void |
setValue(java.lang.String key,
java.lang.Object value)
Adds a key/value pair to the list. |
void |
setValues(AVList avList)
|
LayerList |
sort()
|
java.lang.String |
toString()
|
Methods inherited from class java.util.concurrent.CopyOnWriteArrayList |
---|
clear, 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)
Method Detail |
---|
public void add(int index, Layer layer)
add
in interface java.util.List<Layer>
add
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public boolean add(Layer layer)
add
in interface java.util.Collection<Layer>
add
in interface java.util.List<Layer>
add
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public boolean addAll(java.util.Collection<? extends Layer> layers)
addAll
in interface java.util.Collection<Layer>
addAll
in interface java.util.List<Layer>
addAll
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public boolean addAll(int i, java.util.Collection<? extends Layer> layers)
addAll
in interface java.util.List<Layer>
addAll
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public int addAllAbsent(java.util.Collection<? extends Layer> layers)
addAllAbsent
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public boolean addIfAbsent(Layer layer)
addIfAbsent
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
AVList
addPropertyChangeListener
in interface AVList
listener
- the listener to call.PropertyChangeSupport
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
AVList
addPropertyChangeListener
in interface AVList
propertyName
- the key to associate the listener with.listener
- the listener to associate with the key.PropertyChangeSupport
public AVList clearList()
clearList
in interface AVList
public java.lang.Object clone()
clone
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public AVList copy()
AVList
AVList
instance: the keys and values themselves are not cloned.
copy
in interface AVList
AVList
.public void firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
AVList
firePropertyChange
in interface AVList
propertyChangeEvent
- the eventPropertyChangeSupport
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
AVList
odValue
and newValue
are equal and non-null.
firePropertyChange
in interface AVList
propertyName
- the keyoldValue
- the value associated with the key before the even causing the firing.newValue
- the new value associated with the key.PropertyChangeSupport
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> getEntries()
getEntries
in interface AVList
public java.lang.String getStringValue(java.lang.String key)
AVList
String
.
getStringValue
in interface AVList
key
- the attribute name. May not be null
.
null
.public java.lang.Object getValue(java.lang.String key)
AVList
getValue
in interface AVList
key
- the attribute name. May not be null
.
null
.public java.util.Collection<java.lang.Object> getValues()
getValues
in interface AVList
public boolean hasKey(java.lang.String key)
AVList
hasKey
in interface AVList
key
- the attribute name. May not be null
.
true
if the key exists in the collection, otherwise false
.public void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
propertyChange
in interface java.beans.PropertyChangeListener
public Layer remove(int index)
remove
in interface java.util.List<Layer>
remove
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public void remove(Layer layer)
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<Layer>
remove
in interface java.util.List<Layer>
remove
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public boolean removeAll(java.util.Collection<?> objects)
removeAll
in interface java.util.Collection<Layer>
removeAll
in interface java.util.List<Layer>
removeAll
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public void removeKey(java.lang.String key)
AVList
removeKey
in interface AVList
key
- the attribute name. May not be null
.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
AVList
removePropertyChangeListener
in interface AVList
listener
- the listener to remove.PropertyChangeSupport
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
AVList
removePropertyChangeListener
in interface AVList
propertyName
- the key associated with the change listener.listener
- the listener to remove.PropertyChangeSupport
public boolean retainAll(java.util.Collection<?> objects)
retainAll
in interface java.util.Collection<Layer>
retainAll
in interface java.util.List<Layer>
retainAll
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public Layer set(int index, Layer layer)
set
in interface java.util.List<Layer>
set
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
public void setValue(java.lang.String key, java.lang.Object value)
AVList
setValue
in interface AVList
key
- 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 void setValues(AVList avList)
setValues
in interface AVList
public LayerList sort()
public java.lang.String toString()
toString
in class java.util.concurrent.CopyOnWriteArrayList<Layer>
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |