com.ge.research.acuity.ui.renderers
Class GraphRendererFactory

java.lang.Object
  extended bycom.ge.research.acuity.ui.renderers.GraphRendererFactory

public class GraphRendererFactory
extends java.lang.Object

Factory used to return the proper GraphRenderer to use

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:51 $
Author:
garbiras

Constructor Summary
GraphRendererFactory()
           
 
Method Summary
static GraphRenderer getRenderer()
          Uses the information contained within the resource bundle to determine which specific implementation of GraphRenderer to return and use.
static GraphRenderer getRenderer(GraphPO graph)
          Uses the information contained within the resource bundle as well as information about the specific GraphPO to be rendered to determine which specific implementation of GraphRenderer to return and use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphRendererFactory

public GraphRendererFactory()
Method Detail

getRenderer

public static GraphRenderer getRenderer()
Uses the information contained within the resource bundle to determine which specific implementation of GraphRenderer to return and use.

Returns:
The GraphRenderer to use
See Also:
IntrospectionUtils.getNewGraphRenderer(java.lang.String)

getRenderer

public static GraphRenderer getRenderer(GraphPO graph)
Uses the information contained within the resource bundle as well as information about the specific GraphPO to be rendered to determine which specific implementation of GraphRenderer to return and use. If no information about the specific GraphPO is found in the resource bundle, calls getRenderer()

Parameters:
graph - the GraphPO to be rendered by a GraphRenderer
Returns:
The GraphRenderer to use
See Also:
IntrospectionUtils.getNewGraphRenderer(java.lang.String), getRenderer()