public class MapLayer
extends gov.nasa.worldwind.layers.AnnotationLayer
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Unique class id
|
private java.util.UUID |
uuid |
Constructor and Description |
---|
MapLayer()
Create a new annotation layer for a map.
|
Modifier and Type | Method and Description |
---|---|
void |
addToggleAnnotation(java.lang.String unselectedText,
java.lang.String selectedText,
gov.nasa.worldwind.geom.Position pos)
Convenience method that adds an annotation that is viewable from any altitude.
|
void |
addToggleAnnotation(java.lang.String unselectedText,
java.lang.String selectedText,
gov.nasa.worldwind.geom.Position pos,
double minAltitude,
double maxAltitude)
Convenience method that adds an annotation that is viewable between a min and max altitude.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
private ToggleAnnotation |
makeAnnotation(java.lang.String unselectedText,
java.lang.String selectedText,
gov.nasa.worldwind.geom.Position pos)
Factory to build a toggling annotation.
|
private void |
readObject(java.io.ObjectInputStream in)
Custom deserialization process to deserialize non-serializable superclass.
|
private void |
writeObject(java.io.ObjectOutputStream out)
Custom serialization process to serialize non-serializable superclass
|
addAnnotation, addAnnotations, clearAnnotations, doPick, doRender, getActiveAnnotations, getAnnotationRenderer, getAnnotations, getOpacity, removeAllAnnotations, removeAnnotation, setAnnotationRenderer, setAnnotations, setOpacity, toString
createLayerConfigElements, dispose, doPreRender, getDataFileStore, getExpiryTime, getLayerConfigParams, getMaxActiveAltitude, getMaxEffectiveAltitude, getMinActiveAltitude, getMinEffectiveAltitude, getName, getRestorableState, getScale, getScreenCredit, isAtMaxResolution, isEnabled, isLayerActive, isLayerConfigDocument, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setDataFileStore, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setPickEnabled, setScreenCredit
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
private static final long serialVersionUID
private java.util.UUID uuid
private ToggleAnnotation makeAnnotation(java.lang.String unselectedText, java.lang.String selectedText, gov.nasa.worldwind.geom.Position pos)
unselectedText
- - text when annotation is not selectedselectedText
- - text when annotation is selectedpos
- - position of annotationpublic void addToggleAnnotation(java.lang.String unselectedText, java.lang.String selectedText, gov.nasa.worldwind.geom.Position pos)
unselectedText
- - text when annotation is not selectedselectedText
- - text when annotation is selectedpos
- - position of annotationpublic void addToggleAnnotation(java.lang.String unselectedText, java.lang.String selectedText, gov.nasa.worldwind.geom.Position pos, double minAltitude, double maxAltitude)
unselectedText
- - text when annotation is not selectedselectedText
- - text when annotation is selectedpos
- - position of annotationminAltitude
- - minimum viewable altitudemaxAltitude
- - maximum viewable altitudeprivate void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
out
- Output stream for serializationjava.io.IOException
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
in
- Input stream for deserializationjava.io.IOException
java.lang.ClassNotFoundException
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object