Last change
on this file since 13321 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
2.1 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Text.RegularExpressions;
|
---|
3 |
|
---|
4 | namespace SharpVectors.Dom.Svg
|
---|
5 | {
|
---|
6 | // TODO: This class does not yet support custom views
|
---|
7 | public sealed class SvgViewSpec : SvgFitToViewBox, ISvgViewSpec
|
---|
8 | {
|
---|
9 | #region Constructors and Destructor
|
---|
10 |
|
---|
11 | public SvgViewSpec(SvgElement ownerElement)
|
---|
12 | : base(ownerElement)
|
---|
13 | {
|
---|
14 | // only use the base...
|
---|
15 | }
|
---|
16 |
|
---|
17 | #endregion
|
---|
18 |
|
---|
19 | #region ISvgViewSpec Members
|
---|
20 |
|
---|
21 | public string TransformString
|
---|
22 | {
|
---|
23 | get
|
---|
24 | {
|
---|
25 | return null;
|
---|
26 | }
|
---|
27 | }
|
---|
28 |
|
---|
29 | public ISvgElement ViewTarget
|
---|
30 | {
|
---|
31 | get
|
---|
32 | {
|
---|
33 | return null;
|
---|
34 | }
|
---|
35 | }
|
---|
36 |
|
---|
37 | public string PreserveAspectRatioString
|
---|
38 | {
|
---|
39 | get
|
---|
40 | {
|
---|
41 | return ownerElement.GetAttribute("preserveAspectRatio");
|
---|
42 | }
|
---|
43 | }
|
---|
44 |
|
---|
45 | public string ViewBoxString
|
---|
46 | {
|
---|
47 | get
|
---|
48 | {
|
---|
49 | return ownerElement.GetAttribute("viewBox");
|
---|
50 | }
|
---|
51 | }
|
---|
52 |
|
---|
53 | public string ViewTargetString
|
---|
54 | {
|
---|
55 | get
|
---|
56 | {
|
---|
57 | return null;
|
---|
58 | }
|
---|
59 | }
|
---|
60 |
|
---|
61 | public ISvgTransformList Transform
|
---|
62 | {
|
---|
63 | get
|
---|
64 | {
|
---|
65 | return null;
|
---|
66 | }
|
---|
67 | }
|
---|
68 |
|
---|
69 | #endregion
|
---|
70 |
|
---|
71 | #region ISvgZoomAndPan Members
|
---|
72 |
|
---|
73 | public SharpVectors.Dom.Svg.SvgZoomAndPanType ZoomAndPan
|
---|
74 | {
|
---|
75 | get
|
---|
76 | {
|
---|
77 | if (ownerElement != null && ownerElement.HasAttribute("zoomAndPan"))
|
---|
78 | {
|
---|
79 | switch (ownerElement.GetAttribute("zoomAndPan").Trim())
|
---|
80 | {
|
---|
81 | case "magnify": return SvgZoomAndPanType.Magnify;
|
---|
82 | case "disable": return SvgZoomAndPanType.Disable;
|
---|
83 | }
|
---|
84 | }
|
---|
85 | return SvgZoomAndPanType.Unknown;
|
---|
86 | }
|
---|
87 | set
|
---|
88 | {
|
---|
89 | throw new NotImplementedException();
|
---|
90 | }
|
---|
91 | }
|
---|
92 |
|
---|
93 | #endregion
|
---|
94 | }
|
---|
95 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.