示例#1
0
        public void Write(XmlWriter writer, Stack stack)
        {
            if (!stack.Visible)
            {
                return;
            }

            writer.WriteStartElement("g");

            var elementWriter = new ElementWriter {
                GenerationOptions = GenerationOptions
            };
            var groupWriter = new GroupWriter {
                GenerationOptions = GenerationOptions
            };

            elementWriter.WriteAttributes(writer, stack);
            groupWriter.WriteAttributes(writer, stack);
            WriteAttributes(writer, stack);

            elementWriter.WriteSubElements(writer, stack);
            groupWriter.WriteSubElements(writer, stack);
            WriteSubElements(writer, stack);

            writer.WriteEndElement();
        }
示例#2
0
        public void Write(XmlWriter writer, Circle circle)
        {
            if (!circle.Visible)
            {
                return;
            }

            writer.WriteStartElement("g");

            var elementWriter = new ElementWriter {
                GenerationOptions = GenerationOptions
            };

            elementWriter.WriteAttributes(writer, circle);
            WriteAttributes(writer, circle);

            elementWriter.WriteSubElements(writer, circle);
            WriteSubElements(writer, circle);

            writer.WriteEndElement();
        }
示例#3
0
        public void Write(XmlWriter writer, Legend legend)
        {
            if (!legend.Visible)
            {
                return;
            }

            writer.WriteStartElement("text");

            var elementWriter = new ElementWriter {
                GenerationOptions = GenerationOptions
            };

            elementWriter.WriteAttributes(writer, legend);
            WriteAttributes(writer, legend);

            elementWriter.WriteSubElements(writer, legend);
            WriteSubElements(writer, legend);

            writer.WriteEndElement();
        }