org.openjump.jump.workbench.ui.renderer
Class RendererFactory

java.lang.Object
  extended by org.openjump.jump.workbench.ui.renderer.RendererFactory
All Implemented Interfaces:
IRendererFactory

public class RendererFactory
extends java.lang.Object
implements IRendererFactory


Constructor Summary
RendererFactory()
           
 
Method Summary
 void addRendererFactoryTool(java.lang.Object argContentID, IRendererFactoryTool argTool)
          Call this method to add a RendererFactoryTool to this RendererFactory.
 void addRendererFactoryTool(java.lang.String argClassName, IRendererFactoryTool argTool)
          Call this method to add a RendererFactoryTool to this RendererFactory.
 com.vividsolutions.jump.workbench.ui.renderer.Renderer getRendererForClassName(java.lang.String argClassName, java.lang.Object argContentID, com.vividsolutions.jump.workbench.ui.LayerViewPanel argPanel)
          Returns the appropriate renderer for the class identified by the String passed as an parameter.
 com.vividsolutions.jump.workbench.ui.renderer.Renderer getRendererForObject(java.lang.Object argContentID, com.vividsolutions.jump.workbench.ui.LayerViewPanel argPanel)
          Returns the appropriate renderer for the object passed as an parameter.
 boolean hasARendererForClass(java.lang.Object argContentID)
          Returns true if this RenderingFactory contains a IRendererFactoryTool that will return an implementation of the Renderer interface for the class.
 boolean hasARendererForClass(java.lang.String argClassName)
          Returns true if this RenderingFactory contains a IRendererFactoryTool that will return an implementation of the Renderer interface for the class.
 void removeRendererFactoryTool(java.lang.Object argContentID)
          Call this method to remove the IRendererFactoryTool from this RendererFacotry.
 void removeRendererFactoryTool(java.lang.String argClassName)
          Call this method to remove the IRendererFactoryTool from this RendererFacotry.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RendererFactory

public RendererFactory()
Method Detail

getRendererForClassName

public com.vividsolutions.jump.workbench.ui.renderer.Renderer getRendererForClassName(java.lang.String argClassName,
                                                                                      java.lang.Object argContentID,
                                                                                      com.vividsolutions.jump.workbench.ui.LayerViewPanel argPanel)
Description copied from interface: IRendererFactory
Returns the appropriate renderer for the class identified by the String passed as an parameter.

Specified by:
getRendererForClassName in interface IRendererFactory
Returns:
Renderer - An implementation of the Renderer interface that can be used to paint an object of the class type pased as an argument to this method.

getRendererForObject

public com.vividsolutions.jump.workbench.ui.renderer.Renderer getRendererForObject(java.lang.Object argContentID,
                                                                                   com.vividsolutions.jump.workbench.ui.LayerViewPanel argPanel)
Description copied from interface: IRendererFactory
Returns the appropriate renderer for the object passed as an parameter.

Specified by:
getRendererForObject in interface IRendererFactory
Returns:
Renderer - An implementation of the Renderer interface that can be used to paint an object pased as an argument to this method.

addRendererFactoryTool

public void addRendererFactoryTool(java.lang.String argClassName,
                                   IRendererFactoryTool argTool)
Description copied from interface: IRendererFactory
Call this method to add a RendererFactoryTool to this RendererFactory. These tools are used to determine which Renderer implementation should be returned for the class of the Object that is to be rendered.

Specified by:
addRendererFactoryTool in interface IRendererFactory
See Also:
IRendererFactoryTool

addRendererFactoryTool

public void addRendererFactoryTool(java.lang.Object argContentID,
                                   IRendererFactoryTool argTool)
Description copied from interface: IRendererFactory
Call this method to add a RendererFactoryTool to this RendererFactory. These tools are used to determine which Renderer implementation should be returned for the class of the Object that is to be rendered.

Specified by:
addRendererFactoryTool in interface IRendererFactory
See Also:
IRendererFactoryTool

removeRendererFactoryTool

public void removeRendererFactoryTool(java.lang.String argClassName)
Description copied from interface: IRendererFactory
Call this method to remove the IRendererFactoryTool from this RendererFacotry.

Specified by:
removeRendererFactoryTool in interface IRendererFactory

removeRendererFactoryTool

public void removeRendererFactoryTool(java.lang.Object argContentID)
Description copied from interface: IRendererFactory
Call this method to remove the IRendererFactoryTool from this RendererFacotry.

Specified by:
removeRendererFactoryTool in interface IRendererFactory

hasARendererForClass

public boolean hasARendererForClass(java.lang.String argClassName)
Description copied from interface: IRendererFactory
Returns true if this RenderingFactory contains a IRendererFactoryTool that will return an implementation of the Renderer interface for the class.

Specified by:
hasARendererForClass in interface IRendererFactory
Returns:
boolean - Returns true if the RendererFactory will provide an implementation of the Renderer interface for the class identified by the String passed to this method as an argument.

hasARendererForClass

public boolean hasARendererForClass(java.lang.Object argContentID)
Description copied from interface: IRendererFactory
Returns true if this RenderingFactory contains a IRendererFactoryTool that will return an implementation of the Renderer interface for the class.

Specified by:
hasARendererForClass in interface IRendererFactory
Returns:
boolean - Returns true if the RendererFactory will provide an implementation of the Renderer interface for the class of the object passed as an argument to this method.