Class AbstractGraphicImageFactory
- java.lang.Object
-
- com.vividsolutions.jump.workbench.imagery.graphic.AbstractGraphicImageFactory
-
- All Implemented Interfaces:
ReferencedImageFactory,Prioritized
- Direct Known Subclasses:
CommonsImageFactory,GeoImageFactory,IOGraphicImageFactory,JAIGraphicImageFactory
public abstract class AbstractGraphicImageFactory extends Object implements ReferencedImageFactory, Prioritized
Class implementing generic code used in all *Imagefactory classes.- Author:
- ed
-
-
Field Summary
Fields Modifier and Type Field Description protected HashSetextensions-
Fields inherited from interface com.vividsolutions.jump.workbench.model.Prioritized
COMPARATOR, NOPRIORITY
-
Fields inherited from interface com.vividsolutions.jump.workbench.imagery.ReferencedImageFactory
REGISTRY_CLASSIFICATION
-
-
Constructor Summary
Constructors Constructor Description AbstractGraphicImageFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddExtension(String ext)protected voidaddExtensions(Collection<String> exts)abstract ReferencedImagecreateImage(String location)StringgetDescription()String[]getExtensions()intgetPriority()abstract StringgetTypeName()abstract booleanisAvailable(WorkbenchContext context)booleanisEditableImage(String location)
-
-
-
Field Detail
-
extensions
protected HashSet extensions
-
-
Method Detail
-
getTypeName
public abstract String getTypeName()
- Specified by:
getTypeNamein interfaceReferencedImageFactory
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceReferencedImageFactory
-
createImage
public abstract ReferencedImage createImage(String location) throws Exception
- Specified by:
createImagein interfaceReferencedImageFactory- Throws:
Exception
-
getExtensions
public String[] getExtensions()
- Specified by:
getExtensionsin interfaceReferencedImageFactory
-
isEditableImage
public boolean isEditableImage(String location)
- Specified by:
isEditableImagein interfaceReferencedImageFactory
-
isAvailable
public abstract boolean isAvailable(WorkbenchContext context)
- Specified by:
isAvailablein interfaceReferencedImageFactory- Parameters:
context- can be null, depending on the implementation (e.g. not null for MrSid driver)- Returns:
- true if it is available
-
addExtension
protected void addExtension(String ext)
-
addExtensions
protected void addExtensions(Collection<String> exts)
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfacePrioritized
-
-