Package gov.nasa.worldwind
Class WorldWind
- java.lang.Object
-
- gov.nasa.worldwind.WorldWind
-
public final class WorldWind extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intABSOLUTEstatic intANTIALIAS_DONT_CAREstatic intANTIALIAS_FASTESTstatic intANTIALIAS_NICESTstatic intCLAMP_TO_GROUNDstatic intCONSTANTstatic intGREAT_CIRCLEstatic intLINEARstatic intRELATIVE_TO_GROUNDstatic intRHUMB_LINEstatic java.lang.StringSHUTDOWN_EVENT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)static voidaddPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)static java.lang.ObjectcreateComponent(java.lang.String className)static java.lang.ObjectcreateConfigurationComponent(java.lang.String classNameKey)static FileStoregetDataFileStore()static RetrievalServicegetLocalRetrievalService()static MemoryCachegetMemoryCache(java.lang.String key)static MemoryCacheSetgetMemoryCacheSet()static NetworkStatusgetNetworkStatus()static RetrievalServicegetRemoteRetrievalService()static RetrievalServicegetRetrievalService()static ScheduledTaskServicegetScheduledTaskService()Get the scheduled task service.static SessionCachegetSessionCache()static java.lang.StringgetStringValue(java.lang.String key)static TaskServicegetTaskService()static java.lang.ObjectgetValue(java.lang.String key)static booleanhasKey(java.lang.String key)static booleanisOfflineMode()Indicates whether WorldWind will attempt to connect to the network to retrieve data or for other reasons.static voidremoveKey(java.lang.String key)static voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)static voidremovePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)static voidsetOfflineMode(boolean offlineMode)Indicate whether WorldWind should attempt to connect to the network to retrieve data or for other reasons.static voidsetValue(java.lang.String key, java.lang.Object value)static voidsetValue(java.lang.String key, java.lang.String value)static voidshutDown()Reinitialize WorldWind to its initial ready state.
-
-
-
Field Detail
-
SHUTDOWN_EVENT
public static final java.lang.String SHUTDOWN_EVENT
- See Also:
- Constant Field Values
-
ABSOLUTE
public static final int ABSOLUTE
- See Also:
- Constant Field Values
-
CLAMP_TO_GROUND
public static final int CLAMP_TO_GROUND
- See Also:
- Constant Field Values
-
RELATIVE_TO_GROUND
public static final int RELATIVE_TO_GROUND
- See Also:
- Constant Field Values
-
CONSTANT
public static final int CONSTANT
- See Also:
- Constant Field Values
-
GREAT_CIRCLE
public static final int GREAT_CIRCLE
- See Also:
- Constant Field Values
-
LINEAR
public static final int LINEAR
- See Also:
- Constant Field Values
-
RHUMB_LINE
public static final int RHUMB_LINE
- See Also:
- Constant Field Values
-
ANTIALIAS_DONT_CARE
public static final int ANTIALIAS_DONT_CARE
- See Also:
- Constant Field Values
-
ANTIALIAS_FASTEST
public static final int ANTIALIAS_FASTEST
- See Also:
- Constant Field Values
-
ANTIALIAS_NICEST
public static final int ANTIALIAS_NICEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
shutDown
public static void shutDown()
Reinitialize WorldWind to its initial ready state. Shut down and restart all WorldWind services and clear all WorldWind memory caches. Cache memory will be released at the next JVM garbage collection.Call this method to reduce WorldWind's current resource usage to its initial, empty state.
The state of any open
WorldWindowobjects is indeterminate subsequent to invocation of this method. The core WorldWindow objects attempt to shut themselves down cleanly during the call, but their resulting window state is undefined.WorldWind can continue to be used after calling this method.
-
getMemoryCacheSet
public static MemoryCacheSet getMemoryCacheSet()
-
getMemoryCache
public static MemoryCache getMemoryCache(java.lang.String key)
-
getDataFileStore
public static FileStore getDataFileStore()
-
getRetrievalService
public static RetrievalService getRetrievalService()
-
getRemoteRetrievalService
public static RetrievalService getRemoteRetrievalService()
-
getLocalRetrievalService
public static RetrievalService getLocalRetrievalService()
-
getTaskService
public static TaskService getTaskService()
-
getScheduledTaskService
public static ScheduledTaskService getScheduledTaskService()
Get the scheduled task service. This service can be used to scheduled tasks that execute after a delay, or execute repeatedly.- Returns:
- the scheduled task service.
-
getNetworkStatus
public static NetworkStatus getNetworkStatus()
-
getSessionCache
public static SessionCache getSessionCache()
-
isOfflineMode
public static boolean isOfflineMode()
Indicates whether WorldWind will attempt to connect to the network to retrieve data or for other reasons.- Returns:
trueif WorldWind is in off-line mode,falseif not.- See Also:
NetworkStatus
-
setOfflineMode
public static void setOfflineMode(boolean offlineMode)
Indicate whether WorldWind should attempt to connect to the network to retrieve data or for other reasons. The default value for this attribute isfalse, indicating that the network should be used.- Parameters:
offlineMode-trueif WorldWind should use the network,falseotherwise- See Also:
NetworkStatus
-
createComponent
public static java.lang.Object createComponent(java.lang.String className) throws WWRuntimeException- Parameters:
className- the full name, including package names, of the component to create- Returns:
- the new component
- Throws:
WWRuntimeException- if theObjectcould not be createdjava.lang.IllegalArgumentException- ifclassNameis null or zero length
-
createConfigurationComponent
public static java.lang.Object createConfigurationComponent(java.lang.String classNameKey) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException- Parameters:
classNameKey- the key identifying the component- Returns:
- the new component
- Throws:
java.lang.IllegalStateException- if no name could be found which corresponds toclassNameKeyjava.lang.IllegalArgumentException- ifclassNameKeyis nullWWRuntimeException- if the component could not be created
-
setValue
public static void setValue(java.lang.String key, java.lang.Object value)
-
setValue
public static void setValue(java.lang.String key, java.lang.String value)
-
getValue
public static java.lang.Object getValue(java.lang.String key)
-
getStringValue
public static java.lang.String getStringValue(java.lang.String key)
-
hasKey
public static boolean hasKey(java.lang.String key)
-
removeKey
public static void removeKey(java.lang.String key)
-
addPropertyChangeListener
public static void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
-
removePropertyChangeListener
public static void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
-
addPropertyChangeListener
public static void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
-
removePropertyChangeListener
public static void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
-
-