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 int
ABSOLUTE
static int
ANTIALIAS_DONT_CARE
static int
ANTIALIAS_FASTEST
static int
ANTIALIAS_NICEST
static int
CLAMP_TO_GROUND
static int
CONSTANT
static int
GREAT_CIRCLE
static int
LINEAR
static int
RELATIVE_TO_GROUND
static int
RHUMB_LINE
static java.lang.String
SHUTDOWN_EVENT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
static void
addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
static java.lang.Object
createComponent(java.lang.String className)
static java.lang.Object
createConfigurationComponent(java.lang.String classNameKey)
static FileStore
getDataFileStore()
static RetrievalService
getLocalRetrievalService()
static MemoryCache
getMemoryCache(java.lang.String key)
static MemoryCacheSet
getMemoryCacheSet()
static NetworkStatus
getNetworkStatus()
static RetrievalService
getRemoteRetrievalService()
static RetrievalService
getRetrievalService()
static ScheduledTaskService
getScheduledTaskService()
Get the scheduled task service.static SessionCache
getSessionCache()
static java.lang.String
getStringValue(java.lang.String key)
static TaskService
getTaskService()
static java.lang.Object
getValue(java.lang.String key)
static boolean
hasKey(java.lang.String key)
static boolean
isOfflineMode()
Indicates whether WorldWind will attempt to connect to the network to retrieve data or for other reasons.static void
removeKey(java.lang.String key)
static void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
static void
removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
static void
setOfflineMode(boolean offlineMode)
Indicate whether WorldWind should attempt to connect to the network to retrieve data or for other reasons.static void
setValue(java.lang.String key, java.lang.Object value)
static void
setValue(java.lang.String key, java.lang.String value)
static void
shutDown()
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
WorldWindow
objects 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:
true
if WorldWind is in off-line mode,false
if 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
-true
if WorldWind should use the network,false
otherwise- 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 theObject
could not be createdjava.lang.IllegalArgumentException
- ifclassName
is 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 toclassNameKey
java.lang.IllegalArgumentException
- ifclassNameKey
is 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)
-
-