sk.uniba.euromath.gene.builtin
Class ImageExporterFactory
java.lang.Object
sk.uniba.euromath.gene.builtin.ImageExporterFactory
- All Implemented Interfaces:
- IExporterFactory
public final class ImageExporterFactory
- extends Object
- implements IExporterFactory
Factory that produces image exporters. Singleton.
- Author:
- Martin Vysny
SVG_TO_IMAGE_ID
public static String SVG_TO_IMAGE_ID
- SVG To Image exporter id.
ImageExporterFactory
public ImageExporterFactory()
- Constructor.
getSupportedExporters
public Map<String,ExporterInfo> getSupportedExporters()
throws ExportException
- Description copied from interface:
IExporterFactory
- Returns map that maps ID of an exporter to the information about that
exporter.
- Specified by:
getSupportedExporters
in interface IExporterFactory
- Returns:
- maps ID to info about the exporter. Factory should compute this
map only once - it won't get modified.
- Throws:
ExportException
- if problem occurs.
produce
public IExporter produce(String id,
ExportHelper helper)
throws ExportException
- Description copied from interface:
IExporterFactory
- Produces an instance of exporter denoted by given ID.
- Specified by:
produce
in interface IExporterFactory
- Parameters:
id
- id of the exporter.helper
- the helper object.
- Returns:
- exporter instance.
- Throws:
ExportException
- if error occurs during exporter creation.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright 2003-2003-2006 null. All Rights Reserved.