Java 类com.google.inject.grapher.ImplementationNode 实例源码

项目:guice    文件:GraphvizGrapher.java   
@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));
  }

  addNode(gnode);
}
项目:guice-old    文件:GraphvizGrapher.java   
@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));
  }

  addNode(gnode);
}
项目:google-guice    文件:GraphvizGrapher.java   
@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));
  }

  addNode(gnode);
}
项目:karyon    文件:JsonGrapher.java   
@Override
protected void newImplementationNode(ImplementationNode node) {
    nodes.put(node.getId().getKey(), new GraphNode(node, Type.Implementation));
}