Last change
on this file since 13005 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
2.6 KB
|
Rev | Line | |
---|
[12762] | 1 | using System;
|
---|
| 2 | using System.Text;
|
---|
| 3 |
|
---|
| 4 | namespace SharpVectors.Dom.Svg
|
---|
| 5 | {
|
---|
| 6 | public sealed class SvgPathSegCurvetoCubicAbs : SvgPathSegCurvetoCubic, ISvgPathSegCurvetoCubicAbs
|
---|
| 7 | {
|
---|
| 8 | #region constructors
|
---|
| 9 | internal SvgPathSegCurvetoCubicAbs(double x, double y, double x1, double y1, double x2, double y2)
|
---|
| 10 | : base(SvgPathSegType.CurveToCubicAbs)
|
---|
| 11 | {
|
---|
| 12 | this.x = x;
|
---|
| 13 | this.y = y;
|
---|
| 14 | this.x1 = x1;
|
---|
| 15 | this.y1 = y1;
|
---|
| 16 | this.x2 = x2;
|
---|
| 17 | this.y2 = y2;
|
---|
| 18 | }
|
---|
| 19 | #endregion
|
---|
| 20 |
|
---|
| 21 | #region ISvgPathSegCurvtoCubicAbs Members
|
---|
| 22 |
|
---|
| 23 | private double x;
|
---|
| 24 | public double X
|
---|
| 25 | {
|
---|
| 26 | get { return x; }
|
---|
| 27 | set { x = value; }
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | private double y;
|
---|
| 31 | public double Y
|
---|
| 32 | {
|
---|
| 33 | get { return y; }
|
---|
| 34 | set { y = value; }
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | private double x1;
|
---|
| 38 | public double X1
|
---|
| 39 | {
|
---|
| 40 | get { return x1; }
|
---|
| 41 | set { x1 = value; }
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | private double y1;
|
---|
| 45 | public double Y1
|
---|
| 46 | {
|
---|
| 47 | get { return y1; }
|
---|
| 48 | set { y1 = value; }
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | private double x2;
|
---|
| 52 | public double X2
|
---|
| 53 | {
|
---|
| 54 | get { return x2; }
|
---|
| 55 | set { x2 = value; }
|
---|
| 56 | }
|
---|
| 57 |
|
---|
| 58 | private double y2;
|
---|
| 59 | public double Y2
|
---|
| 60 | {
|
---|
| 61 | get { return y2; }
|
---|
| 62 | set { y2 = value; }
|
---|
| 63 | }
|
---|
| 64 | #endregion
|
---|
| 65 |
|
---|
| 66 | #region Public Methods
|
---|
| 67 |
|
---|
| 68 | public override SvgPointF AbsXY
|
---|
| 69 | {
|
---|
| 70 | get
|
---|
| 71 | {
|
---|
| 72 | return new SvgPointF(X, Y);
|
---|
| 73 | }
|
---|
| 74 | }
|
---|
| 75 | public override SvgPointF CubicX1Y1
|
---|
| 76 | {
|
---|
| 77 | get
|
---|
| 78 | {
|
---|
| 79 | return new SvgPointF(X1, Y1);
|
---|
| 80 | }
|
---|
| 81 | }
|
---|
| 82 | public override SvgPointF CubicX2Y2
|
---|
| 83 | {
|
---|
| 84 | get
|
---|
| 85 | {
|
---|
| 86 | return new SvgPointF(X2, Y2);
|
---|
| 87 | }
|
---|
| 88 | }
|
---|
| 89 |
|
---|
| 90 | public override string PathText
|
---|
| 91 | {
|
---|
| 92 | get
|
---|
| 93 | {
|
---|
| 94 | StringBuilder sb = new StringBuilder();
|
---|
| 95 | sb.Append(PathSegTypeAsLetter);
|
---|
| 96 | sb.Append(X1);
|
---|
| 97 | sb.Append(",");
|
---|
| 98 | sb.Append(Y1);
|
---|
| 99 | sb.Append(",");
|
---|
| 100 | sb.Append(X2);
|
---|
| 101 | sb.Append(",");
|
---|
| 102 | sb.Append(Y2);
|
---|
| 103 | sb.Append(",");
|
---|
| 104 | sb.Append(X);
|
---|
| 105 | sb.Append(",");
|
---|
| 106 | sb.Append(Y);
|
---|
| 107 |
|
---|
| 108 | return sb.ToString();
|
---|
| 109 | }
|
---|
| 110 | }
|
---|
| 111 | #endregion
|
---|
| 112 | }
|
---|
| 113 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.