Package gov.nasa.worldwindx.examples
Class AirspaceBuilder.AirspaceEntry
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwindx.examples.AirspaceBuilder.AirspaceEntry
-
- All Implemented Interfaces:
AVList
,MessageListener
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
- Enclosing class:
- AirspaceBuilder
protected static class AirspaceBuilder.AirspaceEntry extends WWObjectImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected Airspace
airspace
protected AirspaceAttributes
attributes
protected boolean
editing
protected AirspaceEditor
editor
protected boolean
intersecting
protected boolean
selected
-
Constructor Summary
Constructors Constructor Description AirspaceEntry(Airspace airspace, AirspaceEditor editor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Airspace
getAirspace()
AirspaceAttributes
getAttributes()
AirspaceEditor
getEditor()
java.lang.String
getName()
java.lang.Object
getValue(java.lang.String key)
Returns the value for a specified key.boolean
isEditing()
boolean
isIntersecting()
boolean
isSelected()
void
setEditing(boolean editing)
void
setIntersecting(boolean intersecting)
void
setName(java.lang.String name)
void
setSelected(boolean selected)
java.lang.Object
setValue(java.lang.String key, java.lang.Object value)
Adds a key/value pair to the list.java.lang.String
toString()
protected void
updateAttributes()
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
-
-
-
-
Field Detail
-
airspace
protected Airspace airspace
-
editor
protected AirspaceEditor editor
-
attributes
protected AirspaceAttributes attributes
-
editing
protected boolean editing
-
selected
protected boolean selected
-
intersecting
protected boolean intersecting
-
-
Constructor Detail
-
AirspaceEntry
public AirspaceEntry(Airspace airspace, AirspaceEditor editor)
-
-
Method Detail
-
isEditing
public boolean isEditing()
-
setEditing
public void setEditing(boolean editing)
-
isSelected
public boolean isSelected()
-
setSelected
public void setSelected(boolean selected)
-
isIntersecting
public boolean isIntersecting()
-
setIntersecting
public void setIntersecting(boolean intersecting)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getAirspace
public Airspace getAirspace()
-
getEditor
public AirspaceEditor getEditor()
-
getAttributes
public AirspaceAttributes getAttributes()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getValue
public java.lang.Object getValue(java.lang.String key)
Description copied from interface:AVList
Returns the value for a specified key.- Specified by:
getValue
in interfaceAVList
- Overrides:
getValue
in classAVListImpl
- Parameters:
key
- the attribute name. May not benull
.- Returns:
- the attribute value if one exists in the collection, otherwise
null
.
-
setValue
public java.lang.Object setValue(java.lang.String key, java.lang.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 interfaceAVList
- Overrides:
setValue
in classAVListImpl
- Parameters:
key
- the attribute name. May not benull
.value
- the attribute value. May benull
, 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.
-
updateAttributes
protected void updateAttributes()
-
-