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, toStringcreateLayerConfigElements, 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, setScreenCreditaddPropertyChangeListener, 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, setValuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprivate 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.IOExceptionprivate void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in - Input stream for deserializationjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object