sk.uniba.euromath.gene.rendereradapter
Class RendererAdapterFactory
java.lang.Object
sk.uniba.euromath.gene.rendereradapter.RendererAdapterFactory
- All Implemented Interfaces:
- IExporterFactory
public final class RendererAdapterFactory
- extends Object
- implements IExporterFactory
Provides instances of adapters that wraps known renderers as exporters.
- Author:
- Martin Vysny
RendererAdapterFactory
public RendererAdapterFactory()
- Constructs new instance of the factory.
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.