sk.uniba.euromath.editor.imageRenderer
Class ImageRendererFactory

java.lang.Object
  extended by sk.uniba.euromath.editor.imageRenderer.ImageRendererFactory
All Implemented Interfaces:
IRendererFactory

public final class ImageRendererFactory
extends Object
implements IRendererFactory

Produces instances of image renderer.

Author:
Martin Vysny

Field Summary
static String IMAGE_RENDERER_ID
          The image renderer id.
 
Fields inherited from interface sk.uniba.euromath.editor.IRendererFactory
EXTENSION_POINT_ID
 
Constructor Summary
ImageRendererFactory()
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
protected  Map<String,RendererInfo> getRendererMap()
           
 Map<String,RendererInfo> getSupportedRenderers()
          Returns map that maps ID of an renderer to the information about that renderer.
 int hashCode()
           
 IRenderer produce(String id)
          Produces an instance of renderer denoted by given ID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_RENDERER_ID

public static final String IMAGE_RENDERER_ID
The image renderer id.

See Also:
Constant Field Values
Constructor Detail

ImageRendererFactory

public ImageRendererFactory()
Constructor.

Method Detail

produce

public IRenderer produce(String id)
                  throws EditorException
Description copied from interface: IRendererFactory
Produces an instance of renderer denoted by given ID.

Specified by:
produce in interface IRendererFactory
Parameters:
id - id of the renderer.
Returns:
renderer instance.
Throws:
EditorException - if error occurs during renderer creation.

getSupportedRenderers

public Map<String,RendererInfo> getSupportedRenderers()
                                               throws EditorException
Description copied from interface: IRendererFactory
Returns map that maps ID of an renderer to the information about that renderer.

Specified by:
getSupportedRenderers in interface IRendererFactory
Returns:
maps ID to info about the renderer. Factory should compute this map only once - it won't get modified.
Throws:
EditorException - if problem occurs.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getRendererMap

protected Map<String,RendererInfo> getRendererMap()
Returns:
Returns the rendererMap.


Copyright © 2003-2006 null. All Rights Reserved.