/// <summary> /// Serialize vertex /// </summary> /// <param name="name"></param> /// <param name="tw"></param> public void Serialize(string name, XmlTextWriter tw) { if (QueryColumn == null) { return; } tw.WriteStartElement(name); tw.WriteAttributeString("ShowLabels", ShowLabels.ToString()); ResultsViewProps.SerializeQueryColumn(QueryColumn, name + "Column", tw); Color.Serialize("Color", tw); Size.Serialize("Size", tw); Shape.Serialize("Shape", tw); TooltipFields.Serialize("ToolTipFields", tw); tw.WriteEndElement(); return; }
/// <summary> /// Serialize edge /// </summary> /// <param name="name"></param> /// <param name="tw"></param> public void Serialize(string name, XmlTextWriter tw) { if (QueryColumn == null) { return; } tw.WriteStartElement(name); tw.WriteAttributeString("ShowLabels", ShowLabels.ToString()); tw.WriteAttributeString("SummarizationType", SummarizationType.ToString()); tw.WriteAttributeString("IncludeEdgeVertex", IncludeEdgeVertex.ToString()); ResultsViewProps.SerializeQueryColumn(QueryColumn, name + "Column", tw); Color.Serialize("Color", tw); Width.Serialize("Width", tw); TooltipFields.Serialize("ToolTipFields", tw); tw.WriteEndElement(); return; }
/// <summary> /// Serialize Network View Properties /// </summary> /// <param name="tw"></param> public void Serialize(XmlTextWriter tw) { if (!NetworkPropertiesEnabled) { return; } tw.WriteStartElement("NetworkProperties"); //tw.WriteAttributeString("GraphDirectedness", GraphDirectedness.ToString()); LayoutSettingsMx s = LayoutSettings; // layout settings //tw.WriteAttributeString("LayoutType", s.LayoutType.ToString()); //tw.WriteAttributeString("LayoutStyle", s.LayoutStyle.ToString()); //tw.WriteAttributeString("GroupRectanglePenWidth", s.GroupRectanglePenWidth.ToString()); //tw.WriteAttributeString("IntergroupEdgeStyle", s.IntergroupEdgeStyle.ToString()); //tw.WriteAttributeString("ImproveLayoutOfGroups", s.ImproveLayoutOfGroups.ToString()); //tw.WriteAttributeString("MaximumVerticesPerBin", s.MaximumVerticesPerBin.ToString()); //tw.WriteAttributeString("BinLength", s.BinLength.ToString()); //tw.WriteAttributeString("FruchtermanReingoldC", s.FruchtermanReingoldC.ToString()); //tw.WriteAttributeString("FruchtermanReingoldIterations", s.FruchtermanReingoldIterations.ToString()); //tw.WriteAttributeString("Margin", s.Margin.ToString()); //tw.WriteAttributeString("VertexGroupMethod", VertexGroupMethod.ToString()); //tw.WriteAttributeString("GroupingDisabled", GroupingDisabled.ToString()); //tw.WriteAttributeString("GraphScale", GraphScale.ToString()); Vertex1.Serialize("Vertex1", tw); Vertex2.Serialize("Vertex1", tw); Edge.Serialize("Edge", tw); ResultsViewProps.SerializeQueryColumn(GroupByQc, "GroupByQc", tw); tw.WriteEndElement(); // NetworkProperties return; }