public class InstallImageryAndElevationsDemo extends ApplicationTemplate
TiledImageLayer
or an
ElevationModel
. The application also illustrates how to visualize data
that has been installed during a previous session.
For the simplest possible examples of installing imagery and elevation data, see the examples InstallImagery
and InstallElevations
.Modifier and Type | Class and Description |
---|---|
static class |
InstallImageryAndElevationsDemo.AppFrame |
protected static class |
InstallImageryAndElevationsDemo.InstallableDataFilter |
static class |
InstallImageryAndElevationsDemo.InstalledDataFrame |
ApplicationTemplate.AppPanel
Constructor and Description |
---|
InstallImageryAndElevationsDemo() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addInstalledData(Document dataConfig,
AVList params,
InstalledDataPanel panel) |
protected static String |
askForDatasetName(String suggestedName) |
protected static Document |
createDataStore(File[] files,
FileStore fileStore,
DataStoreProducer producer) |
protected static DataStoreProducer |
createDataStoreProducerFromFiles(File[] files)
Creates an instance of the DataStoreProducer basing on raster type.
|
protected static Document |
installDataFromFiles(Component parentComponent,
File[] files,
FileStore fileStore) |
protected static void |
loadInstalledDataFromDirectory(File dir,
InstalledDataPanel panel) |
protected static void |
loadInstalledDataFromFileStore(FileStore fileStore,
InstalledDataPanel panel) |
static void |
main(String[] args) |
protected static void |
setFallbackParams(Document dataConfig,
String filename,
AVList params) |
protected static String |
suggestDatasetName(File[] files)
Suggests a name for a dataset based on pathnames of the passed files.
|
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
protected static void addInstalledData(Document dataConfig, AVList params, InstalledDataPanel panel)
protected static Document createDataStore(File[] files, FileStore fileStore, DataStoreProducer producer) throws Exception
Exception
protected static DataStoreProducer createDataStoreProducerFromFiles(File[] files) throws IllegalArgumentException
files
- Array of raster filesIllegalArgumentException,
- if types of rasters do not match, or array of raster files is null or emptyIllegalArgumentException
protected static Document installDataFromFiles(Component parentComponent, File[] files, FileStore fileStore) throws Exception
Exception
protected static void loadInstalledDataFromDirectory(File dir, InstalledDataPanel panel)
protected static void loadInstalledDataFromFileStore(FileStore fileStore, InstalledDataPanel panel)
public static void main(String[] args)
protected static void setFallbackParams(Document dataConfig, String filename, AVList params)
protected static String suggestDatasetName(File[] files)
files
- Array of raster files