|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.dataop.dem.AbstractElevationModelDescriptor
public abstract class AbstractElevationModelDescriptor
The AbstractElevationModelDescriptor offers a default implementation for the installDemFiles(Object)
method. It uses the properties values returned ElevationModelDescriptor.getDemArchiveUrl() and getDemInstallDir() methods
in order to download and install the DEM.
| Field Summary | |
|---|---|
static String |
INSTALL_DIR_PROPERTY_NAME
|
static String |
PROPERTIES_FILE_NAME
|
| Fields inherited from interface org.esa.beam.framework.dataop.dem.ElevationModelDescriptor |
|---|
DEM_INSTALLATION_CANCELED, DEM_INSTALLATION_ERROR, DEM_INSTALLATION_IN_PROGRESS, DEM_INSTALLED |
| Constructor Summary | |
|---|---|
protected |
AbstractElevationModelDescriptor()
|
| Method Summary | |
|---|---|
File |
getDemInstallDir()
Returns the directory (if any) where the DEM files shall be located. |
File |
getDemPropertiesFile()
Gets the DEM properties file "${BEAM-HOME}/beam-core/auxdata/dem/${DEM}/dem.properties". |
int |
getInstallationStatus()
Currently not used. |
boolean |
installDemFiles(Object uiComponent)
Asynchronously installs the files required to use the DEM if not already done or in progress. |
boolean |
isInstallingDem()
Tests whether or not the DEM is currently being installed. |
protected Properties |
loadProperties()
Loads DEM properties from the "${BEAM-HOME}/beam-core/auxdata/dem/${DEM}/dem.properties" file. |
protected File |
promptForDemInstallDir(Component parent)
Prompts the user for the installation directory. |
void |
setDemInstallDir(File demInstallDir)
|
protected void |
storeProperties()
Stores DEM properties in the "${BEAM-HOME}/beam-core/auxdata/dem/${DEM}/dem.properties" file. |
protected void |
storeProperties(Properties properties)
Stores DEM properties in the "${BEAM-HOME}/beam-core/auxdata/dem/${DEM}/dem.properties" file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.esa.beam.framework.dataop.dem.ElevationModelDescriptor |
|---|
createDem, getDatum, getDemArchiveUrl, getName, getNoDataValue, isDemInstalled |
| Field Detail |
|---|
public static final String PROPERTIES_FILE_NAME
public static final String INSTALL_DIR_PROPERTY_NAME
| Constructor Detail |
|---|
protected AbstractElevationModelDescriptor()
| Method Detail |
|---|
public File getDemPropertiesFile()
public File getDemInstallDir()
ElevationModelDescriptor
getDemInstallDir in interface ElevationModelDescriptorpublic void setDemInstallDir(File demInstallDir)
public boolean isInstallingDem()
ElevationModelDescriptor
isInstallingDem in interface ElevationModelDescriptorpublic int getInstallationStatus()
ElevationModelDescriptor
getInstallationStatus in interface ElevationModelDescriptorpublic boolean installDemFiles(Object uiComponent)
ElevationModelDescriptor
installDemFiles in interface ElevationModelDescriptoruiComponent - an optional UI component which serves as parent for progress monitoring
protected Properties loadProperties()
protected void storeProperties()
protected void storeProperties(Properties properties)
properties - the propertiesprotected File promptForDemInstallDir(Component parent)
parent - the parent UI component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||