public abstract class AbstractGraphicImageFactory extends java.lang.Object implements ReferencedImageFactory, Prioritized
Modifier and Type | Field and Description |
---|---|
protected java.util.HashSet |
extensions |
REGISTRY_CLASSIFICATION
COMPARATOR, NOPRIORITY
Constructor and Description |
---|
AbstractGraphicImageFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
addExtension(java.lang.String ext) |
protected void |
addExtensions(java.util.Collection<java.lang.String> exts) |
abstract ReferencedImage |
createImage(java.lang.String location) |
java.lang.String |
getDescription() |
java.lang.String[] |
getExtensions() |
int |
getPriority() |
abstract java.lang.String |
getTypeName() |
abstract boolean |
isAvailable(WorkbenchContext context) |
boolean |
isEditableImage(java.lang.String location) |
public abstract java.lang.String getTypeName()
getTypeName
in interface ReferencedImageFactory
public java.lang.String getDescription()
getDescription
in interface ReferencedImageFactory
public abstract ReferencedImage createImage(java.lang.String location) throws java.lang.Exception
createImage
in interface ReferencedImageFactory
java.lang.Exception
public java.lang.String[] getExtensions()
getExtensions
in interface ReferencedImageFactory
public boolean isEditableImage(java.lang.String location)
isEditableImage
in interface ReferencedImageFactory
public abstract boolean isAvailable(WorkbenchContext context)
isAvailable
in interface ReferencedImageFactory
context
- can be null, depending on the implementation (e.g. not null for
MrSid driver)protected void addExtension(java.lang.String ext)
protected void addExtensions(java.util.Collection<java.lang.String> exts)
public int getPriority()
getPriority
in interface Prioritized