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.StringELEVATIONstatic java.lang.StringIMAGERYstatic java.lang.StringINSTALL_COMPLETEstatic java.lang.StringPREVIEW_LAYER
-
Constructor Summary
Constructors Constructor Description DataInstaller()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddElevationModelToWorldWindow(WorldWindow wwd, org.w3c.dom.Element domElement, AVList dataSet, boolean goTo)static voidaddLayerToWorldWindow(WorldWindow wwd, org.w3c.dom.Element domElement, AVList dataSet, boolean goTo)static voidaddToWorldWindow(WorldWindow wwd, org.w3c.dom.Element domElement, AVList dataSet, boolean goTo)protected java.lang.StringaskForDatasetName(java.lang.String suggestedName)protected org.w3c.dom.DocumentcreateDataStore(FileSet fileSet, java.io.File installLocation, java.lang.String datasetName, DataStoreProducer producer)protected DataStoreProducercreateDataStoreProducerFromFiles(FileSet fileSet)protected java.lang.StringdetermineCommonPixelFormat(FileSet fileSet)static ElevationModelfindElevationModel(WorldWindow wwd, java.lang.String elevationModelName)static LayerfindLayer(WorldWindow wwd, java.lang.String layerName)java.io.FilegetDefaultInstallLocation(FileStore fileStore)static DataRasterReaderFactorygetReaderFactory()org.w3c.dom.DocumentinstallDataFromFiles(java.awt.Component parentComponent, FileSet fileSet)booleanisDataRaster(java.lang.Object source, AVList params)static voidremoveElevationModel(WorldWindow wwd, ElevationModel elevationModel)protected static voidremoveLayerPreview(WorldWindow wwd, AVList dataSet)protected java.lang.StringsuggestDatasetName(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)
-
-