예제 #1
0
 /// <summary>
 /// Refer to interface documentation.
 /// </summary>
 public void LimitPoints(int width, int height)
 {
     if (Polygon != null)
     {
         Polygon.LimitPoints(width, height);
     }
     if (Line != null)
     {
         Line.LimitPoints(width, height);
     }
     if (Ellipse != null)
     {
         Ellipse.LimitPoints(width, height);
     }
 }
예제 #2
0
        /// <summary>
        /// Refer to MSDN documentation.
        /// </summary>
        public object Clone()
        {
            IMorphPolygon clone = new MorphPolygon
            {
                FillType       = FillType,
                HeadLength     = HeadLength,
                HeadDuration   = HeadDuration,
                Acceleration   = Acceleration,
                HeadColor      = new ColorGradient(HeadColor),
                TailColor      = new ColorGradient(TailColor),
                FillColor      = new ColorGradient(FillColor),
                Polygon        = Polygon == null ? null : Polygon.Clone(),
                Line           = Line == null ? null : Line.Clone(),
                Ellipse        = Ellipse == null ? null : Ellipse.Clone(),
                Time           = Time,
                Label          = Label,
                StartOffset    = StartOffset,
                TailBrightness = new Curve(TailBrightness),
                HeadBrightness = new Curve(HeadBrightness),
                FillBrightness = new Curve(FillBrightness)
            };

            return(clone);
        }