Package com.google.inject.grapher

Examples of com.google.inject.grapher.NodeId


  @Override protected void newInterfaceNode(InterfaceNode node) {
    // TODO(phopkins): Show the Module on the graph, which comes from the
    // class name when source is a StackTraceElement.

    NodeId nodeId = node.getId();
    GraphvizNode gnode = new GraphvizNode(nodeId);
    gnode.setStyle(NodeStyle.DASHED);
    Key<?> key = nodeId.getKey();
    gnode.setTitle(nameFactory.getClassName(key));
    gnode.addSubtitle(0, nameFactory.getAnnotationName(key));
    addNode(gnode);
  }
View Full Code Here


    gnode.addSubtitle(0, nameFactory.getAnnotationName(key));
    addNode(gnode);
  }

  @Override protected void newImplementationNode(ImplementationNode node) {
    NodeId nodeId = node.getId();
    GraphvizNode gnode = new GraphvizNode(nodeId);
    gnode.setStyle(NodeStyle.SOLID);

    gnode.setHeaderBackgroundColor("#000000");
    gnode.setHeaderTextColor("#ffffff");
    gnode.setTitle(nameFactory.getClassName(nodeId.getKey()));

    for (Member member : node.getMembers()) {
      gnode.addField(portIdFactory.getPortId(member), nameFactory.getMemberName(member));
    }
View Full Code Here

    addNode(gnode);
  }

  @Override protected void newInstanceNode(InstanceNode node) {
    NodeId nodeId = node.getId();
    GraphvizNode gnode = new GraphvizNode(nodeId);
    gnode.setStyle(NodeStyle.SOLID);

    gnode.setHeaderBackgroundColor("#000000");
    gnode.setHeaderTextColor("#ffffff");
    gnode.setTitle(nameFactory.getClassName(nodeId.getKey()));

    gnode.addSubtitle(0, nameFactory.getSourceName(node.getSource()));

    gnode.setHeaderBackgroundColor("#aaaaaa");
    gnode.setHeaderTextColor("#ffffff");
View Full Code Here

TOP

Related Classes of com.google.inject.grapher.NodeId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.