Esempio n. 1
0
        public override void PaintGhostLine(Point ltPoint, Point rbPoint)
        {
            // Refresh the old ghost area if needed.
            this.InvalidateGhostArea();

            Ghost = GhostsFactory.GetGhost(
                new Point[] { ltPoint, rbPoint },
                GhostTypes.Line, this);
        }
Esempio n. 2
0
        public override void PaintGhostLine(
            MultiPointType curveType,
            Point[] points)
        {
            // Refresh the old ghost area if needed.
            this.InvalidateGhostArea();

            switch (curveType)
            {
            case MultiPointType.Straight:
                Ghost = GhostsFactory.GetGhost(points, GhostTypes.MultiLine, this);
                break;

            case MultiPointType.Polygon:
                Ghost = GhostsFactory.GetGhost(points, GhostTypes.Polygon, this);
                break;

            case MultiPointType.Curve:
                Ghost = GhostsFactory.GetGhost(points, GhostTypes.CurvedLine, this);
                break;
            }
        }