NASA World Wind

gov.nasa.worldwindx.applications.dataimporter
Class DataInstaller

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwindx.applications.dataimporter.DataInstaller
All Implemented Interfaces:
AVList

public class DataInstaller
extends AVListImpl

Handles all the work necessary to install tiled image layers and elevation models.


Field Summary
static String ELEVATION
           
static String IMAGERY
           
static String INSTALL_COMPLETE
           
static String PREVIEW_LAYER
           
 
Constructor Summary
DataInstaller()
           
 
Method Summary
static void addElevationModelToWorldWindow(WorldWindow wwd, Element domElement, AVList dataSet, boolean goTo)
           
static void addLayerToWorldWindow(WorldWindow wwd, Element domElement, AVList dataSet, boolean goTo)
           
static void addToWorldWindow(WorldWindow wwd, Element domElement, AVList dataSet, boolean goTo)
           
protected  void appendProperties(Element context, AVList properties)
           
protected  void appendSource(Element sources, CachedDataRaster raster)
           
protected  String askForDatasetName(String suggestedName)
           
protected  Document createDataStore(FileSet fileSet, File installLocation, String datasetName, DataStoreProducer producer)
           
protected  DataStoreProducer createDataStoreProducerFromFiles(FileSet fileSet)
           
protected  void createRasterServerConfigDoc(FileStore fileStore, DataStoreProducer producer)
           
protected  String determineCommonPixelFormat(FileSet fileSet)
           
static ElevationModel findElevationModel(WorldWindow wwd, String elevationModelName)
           
static Layer findLayer(WorldWindow wwd, String layerName)
           
 File getDefaultInstallLocation(FileStore fileStore)
           
static DataRasterReaderFactory getReaderFactory()
           
 Document installDataFromFiles(Component parentComponent, FileSet fileSet)
           
 boolean isDataRaster(Object source, AVList params)
           
static void removeElevationModel(WorldWindow wwd, ElevationModel elevationModel)
           
protected static void removeLayerPreview(WorldWindow wwd, AVList dataSet)
           
protected  String suggestDatasetName(FileSet fileSet)
           
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEVATION

public static final String ELEVATION
See Also:
Constant Field Values

IMAGERY

public static final String IMAGERY
See Also:
Constant Field Values

INSTALL_COMPLETE

public static final String INSTALL_COMPLETE
See Also:
Constant Field Values

PREVIEW_LAYER

public static final String PREVIEW_LAYER
See Also:
Constant Field Values
Constructor Detail

DataInstaller

public DataInstaller()
Method Detail

addElevationModelToWorldWindow

public static void addElevationModelToWorldWindow(WorldWindow wwd,
                                                  Element domElement,
                                                  AVList dataSet,
                                                  boolean goTo)

addLayerToWorldWindow

public static void addLayerToWorldWindow(WorldWindow wwd,
                                         Element domElement,
                                         AVList dataSet,
                                         boolean goTo)

addToWorldWindow

public static void addToWorldWindow(WorldWindow wwd,
                                    Element domElement,
                                    AVList dataSet,
                                    boolean goTo)

appendProperties

protected void appendProperties(Element context,
                                AVList properties)

appendSource

protected void appendSource(Element sources,
                            CachedDataRaster raster)
                     throws WWRuntimeException
Throws:
WWRuntimeException

askForDatasetName

protected String askForDatasetName(String suggestedName)

createDataStore

protected Document createDataStore(FileSet fileSet,
                                   File installLocation,
                                   String datasetName,
                                   DataStoreProducer producer)
                            throws Exception
Throws:
Exception

createDataStoreProducerFromFiles

protected DataStoreProducer createDataStoreProducerFromFiles(FileSet fileSet)
                                                      throws IllegalArgumentException
Throws:
IllegalArgumentException

createRasterServerConfigDoc

protected void createRasterServerConfigDoc(FileStore fileStore,
                                           DataStoreProducer producer)

determineCommonPixelFormat

protected String determineCommonPixelFormat(FileSet fileSet)
                                     throws IllegalArgumentException
Throws:
IllegalArgumentException

findElevationModel

public static ElevationModel findElevationModel(WorldWindow wwd,
                                                String elevationModelName)

findLayer

public static Layer findLayer(WorldWindow wwd,
                              String layerName)

getDefaultInstallLocation

public File getDefaultInstallLocation(FileStore fileStore)

getReaderFactory

public static DataRasterReaderFactory getReaderFactory()

installDataFromFiles

public Document installDataFromFiles(Component parentComponent,
                                     FileSet fileSet)
                              throws Exception
Throws:
Exception

isDataRaster

public boolean isDataRaster(Object source,
                            AVList params)

removeElevationModel

public static void removeElevationModel(WorldWindow wwd,
                                        ElevationModel elevationModel)

removeLayerPreview

protected static void removeLayerPreview(WorldWindow wwd,
                                         AVList dataSet)

suggestDatasetName

protected String suggestDatasetName(FileSet fileSet)

NASA World Wind