gov.nasa.worldwind.examples
Class AirspaceBuilder.AirspaceEntry
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.examples.AirspaceBuilder.AirspaceEntry
- All Implemented Interfaces:
- AVList, WWObject, PropertyChangeListener, EventListener
- Enclosing class:
- AirspaceBuilder
protected static class AirspaceBuilder.AirspaceEntry
- extends WWObjectImpl
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues |
Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues |
AirspaceBuilder.AirspaceEntry
public AirspaceBuilder.AirspaceEntry(Airspace airspace,
AirspaceEditor editor)
getAirspace
public Airspace getAirspace()
getAttributes
public AirspaceAttributes getAttributes()
getEditor
public AirspaceEditor getEditor()
getName
public String getName()
getValue
public Object getValue(String key)
- Description copied from interface:
AVList
- Returns the value for a specified key.
- Specified by:
getValue
in interface AVList
- Overrides:
getValue
in class AVListImpl
- Parameters:
key
- the attribute name. May not be null
.
- Returns:
- the attribute value if one exists in the collection, otherwise
null
.
isEditing
public boolean isEditing()
isIntersecting
public boolean isIntersecting()
isSelected
public boolean isSelected()
setEditing
public void setEditing(boolean editing)
setIntersecting
public void setIntersecting(boolean intersecting)
setName
public void setName(String name)
setSelected
public void setSelected(boolean selected)
setValue
public Object setValue(String key,
Object value)
- Description copied from interface:
AVList
- Adds a key/value pair to the list. Replaces an existing key/value pair if the list already contains the key.
- Specified by:
setValue
in interface AVList
- Overrides:
setValue
in class AVListImpl
- Parameters:
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.
- Returns:
- previous value associated with specified key, or null if there was no mapping for key. A null return can
also indicate that the map previously associated null with the specified key, if the implementation
supports null values.
toString
public String toString()
- Overrides:
toString
in class Object
updateAttributes
protected void updateAttributes()