com.google.inject.grapher.graphviz
Class ImplementationNodeFactory

java.lang.Object
  extended by com.google.inject.grapher.graphviz.ImplementationNodeFactory
All Implemented Interfaces:
ImplementationNode.Factory<String,ImplementationNode<String>>

public class ImplementationNodeFactory
extends Object
implements ImplementationNode.Factory<String,ImplementationNode<String>>

Graphviz-specific implementation of ImplementationNode.Factory. Uses a BindingEdgeFactory.GraphvizEdgeAdaptor to delegate to a GraphvizNode.

Author:
phopkins@gmail.com (Pete Hopkins)

Nested Class Summary
protected  class ImplementationNodeFactory.GraphvizNodeAdaptor
          Adaptor class that converts ImplementationNode methods to display operations on a GraphvizNode.
 
Constructor Summary
ImplementationNodeFactory(GraphvizRenderer renderer, NameFactory nameFactory, PortIdFactory portIdFactory)
           
 
Method Summary
protected  ImplementationNodeFactory.GraphvizNodeAdaptor newAdaptor(GraphvizNode node)
           
 ImplementationNode<String> newImplementationNode(String nodeId)
          Creates a new ImplementationNode and adds it to the graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplementationNodeFactory

@Inject
public ImplementationNodeFactory(GraphvizRenderer renderer,
                                        NameFactory nameFactory,
                                        PortIdFactory portIdFactory)
Method Detail

newImplementationNode

public ImplementationNode<String> newImplementationNode(String nodeId)
Description copied from interface: ImplementationNode.Factory
Creates a new ImplementationNode and adds it to the graph.

Specified by:
newImplementationNode in interface ImplementationNode.Factory<String,ImplementationNode<String>>
Parameters:
nodeId - ID for the node.
Returns:
The new ImplementationNode instance.

newAdaptor

protected ImplementationNodeFactory.GraphvizNodeAdaptor newAdaptor(GraphvizNode node)


Copyright © 2006-2011 Google, Inc.. All Rights Reserved.