コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: Parser.cs プロジェクト: PaoloCifariello/Dot2HTML
        private IDotStatement ParseNodeStatement(String nodeId)
        {
            var node = new DotNode (nodeId);
            var attributes = ParseAttributeList ();

            node.SetAttributes (attributes);

            return new DotNodeStatement (node);
        }
コード例 #3
0
 public DotNodeStatement(DotNode node)
 {
     this.node = node;
 }