|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwindx.examples.util.ExampleUtil
public class ExampleUtil
A collection of static utility methods used by the example programs.
| Constructor Summary | |
|---|---|
ExampleUtil()
|
|
| Method Summary | |
|---|---|
static void |
goTo(WorldWindow wwd,
Sector sector)
Causes the View attached to the specified WorldWindow to animate to the specified sector. |
static File |
saveResourceToTempFile(String path,
String suffix)
Saves the file at the specified path in a temporary directory and returns a File to the temporary location. |
static File |
unzipAndSaveToTempFile(String path,
String suffix)
Unzips the sole entry in the specified zip file, and saves it in a temporary directory, and returns a File to the temporary location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExampleUtil()
| Method Detail |
|---|
public static void goTo(WorldWindow wwd,
Sector sector)
wwd - the WorldWindow who's View animates.sector - the sector to go to.
IllegalArgumentException - if either the wwd or the sector are
null.
public static File saveResourceToTempFile(String path,
String suffix)
InputStreamURLURIFileString containing a valid URL
description or a file or resource name available on the classpath.
path - the path to the source file.suffix - the suffix to give the temp file.
File for the temp file.
IllegalArgumentException - if the path is null or empty.
public static File unzipAndSaveToTempFile(String path,
String suffix)
path - the path to the source file.suffix - the suffix to give the temp file.
File for the temp file.
IllegalArgumentException - if the path is null or empty.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||