sk.uniba.euromath.editor.imageRenderer
Class ImageRendererFactory
java.lang.Object
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
IMAGE_RENDERER_ID
public static final String IMAGE_RENDERER_ID
- The image renderer id.
- See Also:
- Constant Field Values
ImageRendererFactory
public ImageRendererFactory()
- Constructor.
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.