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) { }
void InitAttributes() { attr = new 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(); }