Example #1
0
        public void Draw(IExtendedDrawable ext)
        {
            IPoint p = new Geometry.Point();

            p = doGetPoint(0);
            ext.DrawStart(p);

            for (double i = 0; i < 1; i += 0.0003)
            {
                p = doGetPoint(i);
                ext.DrawMiddlePart(p);
            }

            p = doGetPoint(1);
            ext.DrawEnd(p);
        }
 public DecoratorShadow(IDrawable com, IExtendedDrawable shadow)
 {
     this.com    = com;
     this.shadow = shadow;
 }
 public void Draw(IExtendedDrawable shadow)
 {
     com.Draw(this);
     com.Draw(shadow);
 }