World Wind overrides only those values in this application document, it leaves all others to the value specified in World Wind jar files are typically on the classpath, in which case the configuration file may be in the jar file.)Īdditionally, an application may set another Java property, .config.document, to aįile name or URL whose contents contain configuration values to override those of the primary configuration document. If a file is specified its location must be on the classpath. When an application specifies a different configuration location it typically does so in its main method prior The Java property .file to a different file name or a valid URL prior toĬreating any World Wind object or invoking any static methods of World Wind classes, including the ConfigurationĬlass. The default World Wind configuration document is config/worldwind.xml. During construction that class causes World Wind's internal classes toīe constructed, using the names of those classes drawn from the Configuration singleton, this class. For example, the first World Wind object created by an application is typically a WorldWindowGLCanvas. Many World Wind start-up objects query this information to determine the classes toĬreate. The information can subsequently be retrieved via the class' various When the Configuration class is first instantiated it reads the XML document config/worldwind.xml and It is constructed upon first use of any of its static methods. The Configuration class is a singleton, but its instance is not exposed publicly. Including the globe, elevation model and layers, and various control quantities such as cache sizes and data Configurations files contain the names of classes to create at run-time, the initial model definition, It reads World Wind configuration files and registers theirĬontents. This class manages the initial World Wind configuration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |