Last change
on this file since 13918 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
944 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Xml;
|
---|
3 |
|
---|
4 | using SharpVectors.Dom.Css;
|
---|
5 |
|
---|
6 |
|
---|
7 | namespace SharpVectors.Dom.Svg
|
---|
8 | {
|
---|
9 | public sealed class SvgZoomAndPan
|
---|
10 | {
|
---|
11 | public SvgZoomAndPan(SvgElement ownerElement)
|
---|
12 | {
|
---|
13 | this.ownerElement = ownerElement;
|
---|
14 | }
|
---|
15 |
|
---|
16 | #region Private fields
|
---|
17 | private SvgElement ownerElement;
|
---|
18 | #endregion
|
---|
19 |
|
---|
20 | public SvgZoomAndPanType ZoomAndPan
|
---|
21 | {
|
---|
22 | get
|
---|
23 | {
|
---|
24 | if (ownerElement != null && ownerElement.HasAttribute("zoomAndPan"))
|
---|
25 | {
|
---|
26 | switch (ownerElement.GetAttribute("zoomAndPan").Trim())
|
---|
27 | {
|
---|
28 | case "magnify": return SvgZoomAndPanType.Magnify;
|
---|
29 | case "disable": return SvgZoomAndPanType.Disable;
|
---|
30 | }
|
---|
31 | }
|
---|
32 | return SvgZoomAndPanType.Unknown;
|
---|
33 | }
|
---|
34 | }
|
---|
35 | }
|
---|
36 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.