Class ReferencedImageFactoryFileLayerLoader
- java.lang.Object
-
- org.openjump.core.ui.io.file.AbstractFileLayerLoader
-
- com.vividsolutions.jump.workbench.imagery.ReferencedImageFactoryFileLayerLoader
-
- All Implemented Interfaces:
Prioritized
,FileLayerLoader
- Direct Known Subclasses:
GeoImageFactoryFileLayerLoader
public class ReferencedImageFactoryFileLayerLoader extends AbstractFileLayerLoader implements Prioritized
-
-
Field Summary
Fields Modifier and Type Field Description protected ReferencedImageFactory
imageFactory
protected WorkbenchContext
workbenchContext
-
Fields inherited from class org.openjump.core.ui.io.file.AbstractFileLayerLoader
PRIO_COMPARATOR
-
Fields inherited from interface org.openjump.core.ui.io.file.FileLayerLoader
KEY
-
Fields inherited from interface com.vividsolutions.jump.workbench.model.Prioritized
COMPARATOR, NOPRIORITY
-
-
Constructor Summary
Constructors Constructor Description ReferencedImageFactoryFileLayerLoader(WorkbenchContext workbenchContext, ReferencedImageFactory imageFactory, String[] additionalSupportedFileExtensions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Feature
createImageFeature(Feature f_orig, ImageryLayerDataset imageryLayerDataset)
try to create an image feature from the given basic featurestatic Feature
createImageFeature(ReferencedImageFactory referencedImageFactory, URI uri, ImageryLayerDataset imageryLayerDataset)
static Collection
createImageFeatures(ReferencedImageFactory referencedImageFactory, URI[] uris, ImageryLayerDataset imageryLayerDataset)
static Layer
createLayer(LayerManager layerManager, URI uri)
ReferencedImageFactory
getImageFactory()
int
getPriority()
boolean
open(TaskMonitor monitor, URI uri, Map<String,Object> options)
Open the file specified by the URI with the map of option values.-
Methods inherited from class org.openjump.core.ui.io.file.AbstractFileLayerLoader
addFileExtensions, addOption, addOption, getDescription, getFileExtensions, getOptionMetadata, removeOption, removeOption, toString
-
-
-
-
Field Detail
-
workbenchContext
protected WorkbenchContext workbenchContext
-
imageFactory
protected ReferencedImageFactory imageFactory
-
-
Constructor Detail
-
ReferencedImageFactoryFileLayerLoader
public ReferencedImageFactoryFileLayerLoader(WorkbenchContext workbenchContext, ReferencedImageFactory imageFactory, String[] additionalSupportedFileExtensions)
-
-
Method Detail
-
getImageFactory
public ReferencedImageFactory getImageFactory()
-
open
public boolean open(TaskMonitor monitor, URI uri, Map<String,Object> options) throws Exception
Description copied from interface:FileLayerLoader
Open the file specified by the URI with the map of option values.- Specified by:
open
in interfaceFileLayerLoader
- Parameters:
monitor
- The TaskMonitor.uri
- The URI to the file to load.options
- The map of options.- Returns:
- True if the file could be loaded false otherwise.
- Throws:
Exception
- if an Exception occurred
-
createImageFeature
public static Feature createImageFeature(Feature f_orig, ImageryLayerDataset imageryLayerDataset)
try to create an image feature from the given basic feature- Parameters:
f_orig
- basic Feature to add as an ReferencedImageFeature to the ImageryLayerDatasetimageryLayerDataset
- an ImageryLayerDataset- Returns:
- the ReferencedImageFeature
-
createImageFeature
public static Feature createImageFeature(ReferencedImageFactory referencedImageFactory, URI uri, ImageryLayerDataset imageryLayerDataset) throws Exception
- Throws:
Exception
-
createImageFeatures
public static Collection createImageFeatures(ReferencedImageFactory referencedImageFactory, URI[] uris, ImageryLayerDataset imageryLayerDataset)
-
createLayer
public static Layer createLayer(LayerManager layerManager, URI uri)
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfacePrioritized
-
-