gov.nasa.worldwind
Class WorldWind
java.lang.Object
gov.nasa.worldwind.WorldWind
public final class WorldWind
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHUTDOWN_EVENT
public static final String SHUTDOWN_EVENT
- See Also:
- Constant Field Values
addPropertyChangeListener
public static void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
public static void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
createComponent
public static Object createComponent(String className)
throws WWRuntimeException
- Parameters:
className
- the full name, including package names, of the component to create
- Returns:
- the new component
- Throws:
WWRuntimeException
- if the Object
could not be created
IllegalArgumentException
- if className
is null or zero length
createConfigurationComponent
public static Object createConfigurationComponent(String classNameKey)
throws IllegalStateException,
IllegalArgumentException
- Parameters:
classNameKey
- the key identifying the component
- Returns:
- the new component
- Throws:
IllegalStateException
- if no name could be found which corresponds to classNameKey
IllegalArgumentException
- if classNameKey is null
WWRuntimeException
- if the component could not be created
getDataFileCache
public static FileCache getDataFileCache()
getMemoryCache
public static MemoryCache getMemoryCache(String key)
getMemoryCacheSet
public static MemoryCacheSet getMemoryCacheSet()
getNetworkStatus
public static NetworkStatus getNetworkStatus()
getRetrievalService
public static RetrievalService getRetrievalService()
getStringValue
public static String getStringValue(String key)
getTaskService
public static TaskService getTaskService()
getValue
public static Object getValue(String key)
hasKey
public static boolean hasKey(String key)
isOfflineMode
public boolean isOfflineMode()
- Indicates whether World Wind will attempt to connect to the network to retrieve data or for other reasons.
- Returns:
true
if World Wind is in off-line mode, false
if not.- See Also:
NetworkStatus
removeKey
public static void removeKey(String key)
removePropertyChangeListener
public static void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
public static void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
setOfflineMode
public void setOfflineMode(boolean offlineMode)
- Indicate whether World Wind should attempt to connect to the network to retrieve data or for other reasons. The
default value for this attribute is
false
, indicating that the network should be used.
- Parameters:
offlineMode
- true
if World Wind should use the network, false
otherwise- See Also:
NetworkStatus
setValue
public static void setValue(String key,
String value)
shutDown
public static void shutDown()
- Reinitialize World Wind to its initial ready state. Shut down and restart all World Wind services and clear all
World Wind memory caches. Cache memory will be released at the next JVM garbage collection.
Call this method to reduce World Wind's current resource usage to its initial, empty state. This is typically
required by applets when the user leaves the applet page.
World Wind can continue to be used after calling this method. The state of any existing World Wind drawables is
subsequently indeterminate and they should be disposed.