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
FieldsFields inherited from class AbstractFileLayerLoader
PRIO_COMPARATORFields inherited from interface FileLayerLoader
KEYFields inherited from interface Prioritized
COMPARATOR, NOPRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionReferencedImageFactoryFileLayerLoader(WorkbenchContext workbenchContext, ReferencedImageFactory imageFactory, String[] additionalSupportedFileExtensions) -
Method Summary
Modifier and TypeMethodDescriptionstatic FeaturecreateImageFeature(Feature f_orig, ImageryLayerDataset imageryLayerDataset) try to create an image feature from the given basic featurestatic FeaturecreateImageFeature(ReferencedImageFactory referencedImageFactory, URI uri, ImageryLayerDataset imageryLayerDataset) static CollectioncreateImageFeatures(ReferencedImageFactory referencedImageFactory, URI[] uris, ImageryLayerDataset imageryLayerDataset) static LayercreateLayer(LayerManager layerManager, URI uri) intbooleanOpen the file specified by the URI with the map of option values.Methods inherited from class AbstractFileLayerLoader
addFileExtensions, addOption, addOption, getDescription, getFileExtensions, getOptionMetadata, removeOption, removeOption, toString
-
Field Details
-
workbenchContext
-
imageFactory
-
-
Constructor Details
-
ReferencedImageFactoryFileLayerLoader
public ReferencedImageFactoryFileLayerLoader(WorkbenchContext workbenchContext, ReferencedImageFactory imageFactory, String[] additionalSupportedFileExtensions)
-
-
Method Details
-
getImageFactory
-
open
Description copied from interface:FileLayerLoaderOpen the file specified by the URI with the map of option values.- Specified by:
openin 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
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
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfacePrioritized
-