Last change
on this file since 14161 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
1.1 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Text;
|
---|
3 |
|
---|
4 | namespace SharpVectors.Dom.Svg
|
---|
5 | {
|
---|
6 | public sealed class SvgPathSegLinetoVerticalAbs : SvgPathSegLineto, ISvgPathSegLinetoVerticalAbs
|
---|
7 | {
|
---|
8 | private double y;
|
---|
9 |
|
---|
10 | internal SvgPathSegLinetoVerticalAbs(double y)
|
---|
11 | : base(SvgPathSegType.LineToVerticalAbs)
|
---|
12 | {
|
---|
13 | this.y = y;
|
---|
14 | }
|
---|
15 |
|
---|
16 | public double Y
|
---|
17 | {
|
---|
18 | get { return y; }
|
---|
19 | set { y = value; }
|
---|
20 | }
|
---|
21 |
|
---|
22 | public override SvgPointF AbsXY
|
---|
23 | {
|
---|
24 | get
|
---|
25 | {
|
---|
26 | SvgPathSeg prevSeg = PreviousSeg;
|
---|
27 | SvgPointF prevPoint;
|
---|
28 | if (prevSeg == null) prevPoint = new SvgPointF(0, 0);
|
---|
29 | else prevPoint = prevSeg.AbsXY;
|
---|
30 | return new SvgPointF(prevPoint.X, Y);
|
---|
31 | }
|
---|
32 | }
|
---|
33 |
|
---|
34 | public override string PathText
|
---|
35 | {
|
---|
36 | get
|
---|
37 | {
|
---|
38 | StringBuilder sb = new StringBuilder();
|
---|
39 | sb.Append(PathSegTypeAsLetter);
|
---|
40 | sb.Append(Y);
|
---|
41 |
|
---|
42 | return sb.ToString();
|
---|
43 | }
|
---|
44 | }
|
---|
45 | }
|
---|
46 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.