public class ReferencedImageFactoryFileLayerLoader extends AbstractFileLayerLoader implements Prioritized
Modifier and Type | Field and Description |
---|---|
protected ReferencedImageFactory |
imageFactory |
protected WorkbenchContext |
workbenchContext |
PRIO_COMPARATOR
COMPARATOR, NOPRIORITY
KEY
Constructor and Description |
---|
ReferencedImageFactoryFileLayerLoader(WorkbenchContext workbenchContext,
ReferencedImageFactory imageFactory,
java.lang.String[] additionalSupportedFileExtensions) |
Modifier and Type | Method and Description |
---|---|
static Feature |
createImageFeature(Feature f_orig,
ImageryLayerDataset imageryLayerDataset)
try to create an image feature from the given basic feature
|
static Feature |
createImageFeature(ReferencedImageFactory referencedImageFactory,
java.net.URI uri,
ImageryLayerDataset imageryLayerDataset) |
static java.util.Collection |
createImageFeatures(ReferencedImageFactory referencedImageFactory,
java.net.URI[] uris,
ImageryLayerDataset imageryLayerDataset) |
static Layer |
createLayer(LayerManager layerManager,
java.net.URI uri) |
ReferencedImageFactory |
getImageFactory() |
int |
getPriority() |
boolean |
open(TaskMonitor monitor,
java.net.URI uri,
java.util.Map<java.lang.String,java.lang.Object> options)
Open the file specified by the URI with the map of option values.
|
addFileExtensions, addOption, addOption, getDescription, getFileExtensions, getOptionMetadata, removeOption, removeOption, toString
protected WorkbenchContext workbenchContext
protected ReferencedImageFactory imageFactory
public ReferencedImageFactoryFileLayerLoader(WorkbenchContext workbenchContext, ReferencedImageFactory imageFactory, java.lang.String[] additionalSupportedFileExtensions)
public ReferencedImageFactory getImageFactory()
public boolean open(TaskMonitor monitor, java.net.URI uri, java.util.Map<java.lang.String,java.lang.Object> options) throws java.lang.Exception
FileLayerLoader
open
in interface FileLayerLoader
monitor
- The TaskMonitor.uri
- The URI to the file to load.options
- The map of options.java.lang.Exception
public static Feature createImageFeature(Feature f_orig, ImageryLayerDataset imageryLayerDataset)
f_orig
- public static Feature createImageFeature(ReferencedImageFactory referencedImageFactory, java.net.URI uri, ImageryLayerDataset imageryLayerDataset) throws java.lang.Exception
java.lang.Exception
public static java.util.Collection createImageFeatures(ReferencedImageFactory referencedImageFactory, java.net.URI[] uris, ImageryLayerDataset imageryLayerDataset)
public static Layer createLayer(LayerManager layerManager, java.net.URI uri)
public int getPriority()
getPriority
in interface Prioritized