Class DataInstaller
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- 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
Fields Modifier and Type Field Description static java.lang.String
ELEVATION
static java.lang.String
IMAGERY
static java.lang.String
INSTALL_COMPLETE
static java.lang.String
PREVIEW_LAYER
-
Constructor Summary
Constructors Constructor Description DataInstaller()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addElevationModelToWorldWindow(WorldWindow wwd, org.w3c.dom.Element domElement, AVList dataSet, boolean goTo)
static void
addLayerToWorldWindow(WorldWindow wwd, org.w3c.dom.Element domElement, AVList dataSet, boolean goTo)
static void
addToWorldWindow(WorldWindow wwd, org.w3c.dom.Element domElement, AVList dataSet, boolean goTo)
protected java.lang.String
askForDatasetName(java.lang.String suggestedName)
protected org.w3c.dom.Document
createDataStore(FileSet fileSet, java.io.File installLocation, java.lang.String datasetName, DataStoreProducer producer)
protected DataStoreProducer
createDataStoreProducerFromFiles(FileSet fileSet)
protected java.lang.String
determineCommonPixelFormat(FileSet fileSet)
static ElevationModel
findElevationModel(WorldWindow wwd, java.lang.String elevationModelName)
static Layer
findLayer(WorldWindow wwd, java.lang.String layerName)
java.io.File
getDefaultInstallLocation(FileStore fileStore)
static DataRasterReaderFactory
getReaderFactory()
org.w3c.dom.Document
installDataFromFiles(java.awt.Component parentComponent, FileSet fileSet)
boolean
isDataRaster(java.lang.Object source, AVList params)
static void
removeElevationModel(WorldWindow wwd, ElevationModel elevationModel)
protected static void
removeLayerPreview(WorldWindow wwd, AVList dataSet)
protected java.lang.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
-
-
-
-
Field Detail
-
IMAGERY
public static final java.lang.String IMAGERY
- See Also:
- Constant Field Values
-
ELEVATION
public static final java.lang.String ELEVATION
- See Also:
- Constant Field Values
-
INSTALL_COMPLETE
public static final java.lang.String INSTALL_COMPLETE
- See Also:
- Constant Field Values
-
PREVIEW_LAYER
public static final java.lang.String PREVIEW_LAYER
- See Also:
- Constant Field Values
-
-
Method Detail
-
installDataFromFiles
public org.w3c.dom.Document installDataFromFiles(java.awt.Component parentComponent, FileSet fileSet) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createDataStoreProducerFromFiles
protected DataStoreProducer createDataStoreProducerFromFiles(FileSet fileSet) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
determineCommonPixelFormat
protected java.lang.String determineCommonPixelFormat(FileSet fileSet) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
createDataStore
protected org.w3c.dom.Document createDataStore(FileSet fileSet, java.io.File installLocation, java.lang.String datasetName, DataStoreProducer producer) throws java.lang.Exception
- Throws:
java.lang.Exception
-
askForDatasetName
protected java.lang.String askForDatasetName(java.lang.String suggestedName)
-
suggestDatasetName
protected java.lang.String suggestDatasetName(FileSet fileSet)
-
isDataRaster
public boolean isDataRaster(java.lang.Object source, AVList params)
-
getDefaultInstallLocation
public java.io.File getDefaultInstallLocation(FileStore fileStore)
-
addToWorldWindow
public static void addToWorldWindow(WorldWindow wwd, org.w3c.dom.Element domElement, AVList dataSet, boolean goTo)
-
addLayerToWorldWindow
public static void addLayerToWorldWindow(WorldWindow wwd, org.w3c.dom.Element domElement, AVList dataSet, boolean goTo)
-
removeLayerPreview
protected static void removeLayerPreview(WorldWindow wwd, AVList dataSet)
-
addElevationModelToWorldWindow
public static void addElevationModelToWorldWindow(WorldWindow wwd, org.w3c.dom.Element domElement, AVList dataSet, boolean goTo)
-
getReaderFactory
public static DataRasterReaderFactory getReaderFactory()
-
findLayer
public static Layer findLayer(WorldWindow wwd, java.lang.String layerName)
-
findElevationModel
public static ElevationModel findElevationModel(WorldWindow wwd, java.lang.String elevationModelName)
-
removeElevationModel
public static void removeElevationModel(WorldWindow wwd, ElevationModel elevationModel)
-
-