Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorModel/DocumentStructure/SvgGElement.cs @ 13825

Last change on this file since 13825 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 2.2 KB
RevLine 
[12762]1using System;
2using System.Xml;
3
4using SharpVectors.Dom.Events;
5
6namespace SharpVectors.Dom.Svg
7{
8    /// <summary>
9    /// The SvgGElement interface corresponds to the 'g' element.
10    /// </summary>
11    public sealed class SvgGElement : SvgTransformableElement, ISvgGElement
12    {
13        private SvgTests svgTests;
14
15        private SvgExternalResourcesRequired svgExternalResourcesRequired;
16       
17        #region Constructors
18
19        internal SvgGElement(string prefix, string localname, string ns, SvgDocument doc)
20            : base(prefix, localname, ns, doc)
21        {
22            svgExternalResourcesRequired = new SvgExternalResourcesRequired(this);
23            svgTests = new SvgTests(this);
24        }
25
26        #endregion
27
28        #region ISvgElement Members
29
30        /// <summary>
31        /// Gets a value providing a hint on the rendering defined by this element.
32        /// </summary>
33        /// <value>
34        /// An enumeration of the <see cref="SvgRenderingHint"/> specifying the rendering hint.
35        /// This will always return <see cref="SvgRenderingHint.Containment"/>
36        /// </value>
37        public override SvgRenderingHint RenderingHint
38        {
39            get
40            {
41                return SvgRenderingHint.Containment;
42            }
43        }
44
45        #endregion
46
47        #region Implementation of ISvgExternalResourcesRequired
48
49        public ISvgAnimatedBoolean ExternalResourcesRequired
50        {
51            get
52            {
53                return svgExternalResourcesRequired.ExternalResourcesRequired;
54            }
55        }
56
57        #endregion
58
59        #region Implementation of ISvgTests
60
61        public ISvgStringList RequiredFeatures
62        {
63            get { return svgTests.RequiredFeatures; }
64        }
65
66        public ISvgStringList RequiredExtensions
67        {
68            get { return svgTests.RequiredExtensions; }
69        }
70
71        public ISvgStringList SystemLanguage
72        {
73            get { return svgTests.SystemLanguage; }
74        }
75
76        public bool HasExtension(string extension)
77        {
78            return svgTests.HasExtension(extension);
79        }
80
81        #endregion
82    }
83}
Note: See TracBrowser for help on using the repository browser.