Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorModel/Paths/SvgPathSegMoveTo.cs @ 12762

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

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

File size: 1.4 KB
Line 
1using System;
2using System.Text;
3
4namespace SharpVectors.Dom.Svg
5{
6    /// <summary>
7    /// Summary description for SvgMoveToSeg.
8    /// </summary>
9    public abstract class SvgPathSegMoveto : SvgPathSeg
10    {
11        protected SvgPathSegMoveto(SvgPathSegType type, double x, double y)
12            : base(type)
13        {
14            this.x = x;
15            this.y = y;
16        }
17
18        public abstract override SvgPointF AbsXY { get; }
19
20        public override double StartAngle
21        {
22            get
23            {
24                return 0;
25            }
26        }
27
28        public override double EndAngle
29        {
30            get
31            {
32                return 0;
33            }
34        }
35
36        public override string PathText
37        {
38            get
39            {
40                StringBuilder sb = new StringBuilder();
41                sb.Append(PathSegTypeAsLetter);
42                sb.Append(x);
43                sb.Append(",");
44                sb.Append(y);
45
46                return sb.ToString();
47            }
48        }
49
50        protected double x;
51        public double X
52        {
53            get { return x; }
54            set { x = value; }
55        }
56
57        protected double y;
58        public double Y
59        {
60            get { return y; }
61            set { y = value; }
62        }
63    }
64}
Note: See TracBrowser for help on using the repository browser.