Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorModel/DocumentStructure/SvgDefsElement.cs @ 13234

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

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

File size: 2.4 KB
Line 
1using System;
2
3namespace SharpVectors.Dom.Svg
4{
5  /// <summary>
6  /// The SvgDefsElement interface corresponds to the 'defs' element.
7  /// </summary>
8    public sealed class SvgDefsElement : SvgTransformableElement, ISvgDefsElement
9    {
10        #region Private Fields
11
12        private SvgTests svgTests;
13        private SvgExternalResourcesRequired svgExternalResourcesRequired;
14
15        #endregion
16
17        #region Constructors
18
19        public SvgDefsElement(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 indicating whether this SVG element is renderable.
32        /// </summary>
33        /// <value>
34        /// This is <see langword="'true"/> if the element is renderable; otherwise,
35        /// it is <see langword="false"/>.
36        /// </value>
37        public override bool IsRenderable
38        {
39            get
40            {
41                return false;
42            }
43        }
44
45        /// <summary>
46        /// Gets a value providing a hint on the rendering defined by this element.
47        /// </summary>
48        /// <value>
49        /// An enumeration of the <see cref="SvgRenderingHint"/> specifying the rendering hint.
50        /// This will always return <see cref="SvgRenderingHint.Containment"/>
51        /// </value>
52        public override SvgRenderingHint RenderingHint
53        {
54            get
55            {
56                return SvgRenderingHint.Containment;
57            }
58        }
59
60        #endregion
61
62    #region ISvgExternalResourcesRequired Members
63
64    public ISvgAnimatedBoolean ExternalResourcesRequired
65    {
66      get
67      {
68        return svgExternalResourcesRequired.ExternalResourcesRequired;
69      }
70    }
71
72    #endregion
73
74    #region ISvgTests Members
75
76    public ISvgStringList RequiredFeatures
77    {
78      get { return svgTests.RequiredFeatures; }
79    }
80
81    public ISvgStringList RequiredExtensions
82    {
83      get { return svgTests.RequiredExtensions; }
84    }
85
86    public ISvgStringList SystemLanguage
87    {
88      get { return svgTests.SystemLanguage; }
89    }
90
91    public bool HasExtension(string extension)
92    {
93      return svgTests.HasExtension(extension);
94    }
95
96        #endregion
97  }
98}
Note: See TracBrowser for help on using the repository browser.