示例#1
0
 private void WriteGraphAttr(GraphAttr graphAttr)
 {
     this.WriteStartElement(Tokens.GraphAttribute);
     WriteBaseAttr(graphAttr);
     this.WriteMinNodeHeight();
     this.WriteMinNodeWidth();
     this.WriteAspectRatio();
     this.WriteBorder();
     WriteColorElement(Tokens.BackgroundColor, graphAttr.BackgroundColor);
     WriteStringElement(Tokens.Margin, graphAttr.Margin);
     WriteStringElement(Tokens.OptimizeLabelPositions, graphAttr.OptimizeLabelPositions);
     WriteStringElement(Tokens.NodeSeparation, graphAttr.NodeSeparation);
     WriteStringElement(Tokens.LayerDirection, graphAttr.LayerDirection);
     WriteStringElement(Tokens.LayerSeparation, graphAttr.LayerSeparation);
     this.WriteEndElement();
 }
 static void WriteGraphAttr(GraphAttr graphAttr)
 {
 }
示例#3
0
 void InitAttributes()
 {
     attr = new GraphAttr();
 }
示例#4
0
 void InitAttributes()
 {
     attr = new GraphAttr();
     //     CreateSelectedNodeAttr();
     //     CreateSelectedEdgeAttr();
 }
 static void WriteGraphAttr(GraphAttr graphAttr)
 {
 }
 void InitAttributes() {
     attr = new GraphAttr();
     //     CreateSelectedNodeAttr();
     //     CreateSelectedEdgeAttr();
 }
 private void WriteGraphAttr(GraphAttr graphAttr) {
     WriteStartElement(Tokens.GraphAttribute);
     WriteBaseAttr(graphAttr);
     WriteMinNodeHeight();
     WriteMinNodeWidth();
     WriteAspectRatio();
     WriteBorder();
     WriteColorElement(Tokens.BackgroundColor, graphAttr.BackgroundColor);
     WriteStringElement(Tokens.Margin, graphAttr.Margin);
     WriteStringElement(Tokens.OptimizeLabelPositions, graphAttr.OptimizeLabelPositions);
     WriteStringElement(Tokens.NodeSeparation, graphAttr.NodeSeparation);
     WriteStringElement(Tokens.LayerDirection, graphAttr.LayerDirection);
     WriteStringElement(Tokens.LayerSeparation, graphAttr.LayerSeparation);
     WriteEndElement();
 }