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