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

项目: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    文件:GraphvizGrapher.java   
@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");
  gnode.setTitle(nameFactory.getInstanceName(node.getInstance()));

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

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

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

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

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

  addNode(gnode);
}
项目:guice    文件:GraphvizGrapher.java   
@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);
}
项目:guice-old    文件:GraphvizGrapher.java   
@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);
}
项目: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 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);
}
项目: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);
}
项目:guice    文件:GraphvizNode.java   
/** @since 4.0 */
public GraphvizNode(NodeId nodeId) {
  this.nodeId = nodeId;
}
项目:guice    文件:GraphvizNode.java   
/** @since 4.0 */
public NodeId getNodeId() {
  return nodeId;
}
项目:guice    文件:GraphvizEdge.java   
public GraphvizEdge(NodeId tailNodeId, NodeId headNodeId) {
  this.tailNodeId = tailNodeId;
  this.headNodeId = headNodeId;
}
项目:guice    文件:GraphvizEdge.java   
/** @since 4.0 */
public NodeId getHeadNodeId() {
  return headNodeId;
}
项目:guice    文件:GraphvizEdge.java   
/** @since 4.0 */
public NodeId getTailNodeId() {
  return tailNodeId;
}
项目:guice-old    文件:GraphvizNode.java   
public GraphvizNode(NodeId nodeId) {
  this.nodeId = nodeId;
}
项目:guice-old    文件:GraphvizNode.java   
public NodeId getNodeId() {
  return nodeId;
}
项目:guice-old    文件:GraphvizEdge.java   
public GraphvizEdge(NodeId tailNodeId, NodeId headNodeId) {
  this.tailNodeId = tailNodeId;
  this.headNodeId = headNodeId;
}
项目:guice-old    文件:GraphvizEdge.java   
public NodeId getHeadNodeId() {
  return headNodeId;
}
项目:guice-old    文件:GraphvizEdge.java   
public NodeId getTailNodeId() {
  return tailNodeId;
}
项目:google-guice    文件:GraphvizNode.java   
public GraphvizNode(NodeId nodeId) {
  this.nodeId = nodeId;
}
项目:google-guice    文件:GraphvizNode.java   
public NodeId getNodeId() {
  return nodeId;
}
项目:google-guice    文件:GraphvizEdge.java   
public GraphvizEdge(NodeId tailNodeId, NodeId headNodeId) {
  this.tailNodeId = tailNodeId;
  this.headNodeId = headNodeId;
}
项目:google-guice    文件:GraphvizEdge.java   
public NodeId getHeadNodeId() {
  return headNodeId;
}
项目:google-guice    文件:GraphvizEdge.java   
public NodeId getTailNodeId() {
  return tailNodeId;
}