com.google.inject.grapher.graphviz
Class InterfaceNodeFactory

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

public class InterfaceNodeFactory
extends Object
implements InterfaceNode.Factory<String,InterfaceNode<String>>

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

Author:
phopkins@gmail.com (Pete Hopkins)

Nested Class Summary
protected  class InterfaceNodeFactory.GraphvizNodeAdaptor
          Adaptor class that converts InterfaceNode methods to display operations on a GraphvizNode.
 
Constructor Summary
InterfaceNodeFactory(GraphvizRenderer renderer, NameFactory nameFactory)
           
 
Method Summary
 InterfaceNode<String> newInterfaceNode(String nodeId)
          Creates a new InterfaceNode 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

InterfaceNodeFactory

@Inject
public InterfaceNodeFactory(GraphvizRenderer renderer,
                                   NameFactory nameFactory)
Method Detail

newInterfaceNode

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

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


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