sk.uniba.euromath.gene.builtin
Class ImageExporterFactory

java.lang.Object
  extended by 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

Field Summary
static String SVG_TO_IMAGE_ID
          SVG To Image exporter id.
 
Fields inherited from interface sk.uniba.euromath.gene.IExporterFactory
EXTENSION_POINT_ID
 
Constructor Summary
ImageExporterFactory()
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 Map<String,ExporterInfo> getSupportedExporters()
          Returns map that maps ID of an exporter to the information about that exporter.
 int hashCode()
           
 IExporter produce(String id, ExportHelper helper)
          Produces an instance of exporter denoted by given ID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SVG_TO_IMAGE_ID

public static String SVG_TO_IMAGE_ID
SVG To Image exporter id.

Constructor Detail

ImageExporterFactory

public ImageExporterFactory()
Constructor.

Method Detail

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.