private static void GenerateNodeCode(String graphName, DotNode node, ArrayList<String> drawingCode) { var nodeId = node.ID; var attributesCode = GenerateAttributeCode (node.Attributes); drawingCode.Push (String.Format ("{0}.addNode(\"{1}\", {2});", graphName, nodeId, attributesCode)); }
private IDotStatement ParseNodeStatement(String nodeId) { var node = new DotNode (nodeId); var attributes = ParseAttributeList (); node.SetAttributes (attributes); return new DotNodeStatement (node); }
public DotNodeStatement(DotNode node) { this.node = node; }