|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CoverageDatabaseController
To be implemented by objects that can determine the settings of a NewGridCoverageReference.
The setting can be determined either by putting up a GUI to obtain values from a user, or by
other means.
Layer.addCoverageReferences(Collection, CoverageDatabaseController)
| coverage/geotk-coverage-sql (download) | View source code for this class |
| Method Summary | |
|---|---|
void |
coverageAdding(CoverageDatabaseEvent event,
NewGridCoverageReference reference)
Invoked before a Grid Coverage Reference is added. |
Collection<String> |
filterImages(List<String> images,
boolean multiSelectionAllowed)
Invoked before coverageAdding when the coverage contains more than
one image. |
| Method Detail |
|---|
void coverageAdding(CoverageDatabaseEvent event,
NewGridCoverageReference reference)
throws DatabaseVetoException
reference argument
as below:
public void coverageAdding(CoverageDatabaseEvent event, NewGridCoverageReference reference) {
if (event.isBefore()) {
reference.format = "MyPredefinedFormat";
// etc.
}
}
event - Reference to the source database.reference - Information about the coverage reference to be added.
DatabaseVetoException - if the recipient vetos against the operation.
Collection<String> filterImages(List<String> images,
boolean multiSelectionAllowed)
throws DatabaseVetoException
coverageAdding when the coverage contains more than
one image. This method gives an opportunities to select which image to process. When there
is no controller, the default Layer.addCoverageReferences(...)
behavior is to select the first image.
images - The names of images found in the files. The index of each element
in this list is the index of the corresponding image.multiSelectionAllowed - true if multi-selection is allowed,
or false if the user shall select exactly one element.
images.get(0).
DatabaseVetoException - if the recipient vetos against the operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||