Class WorldWind


  • public final class WorldWind
    extends java.lang.Object
    • 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()
      • 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 is false, 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 the Object could not be created
        java.lang.IllegalArgumentException - if className 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 to classNameKey
        java.lang.IllegalArgumentException - if classNameKey is null
        WWRuntimeException - 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)