Exemple #1
0
        public CircularCloudLayouter(Config congig, IRectanglePlacer rectanglePlacer)
        {
            var center = congig.Center;

            if (center.X < 0 || center.Y < 0)
            {
                throw new ArgumentException("Coordinat of center is negative");
            }
            Center = center;
            this.rectanglePlacer = rectanglePlacer;
        }
Exemple #2
0
 public CircularCloudLayouter(IPointsSequence pointsSequence)
 {
     this.pointsSequence = pointsSequence;
     rectanglePlacer     = new CenterRectanglePlacer();
 }
Exemple #3
0
 public CircularCloudLayouter(IPointsSequence pointsSequence, IRectanglePlacer rectanglePlacer)
 {
     this.pointsSequence  = pointsSequence;
     this.rectanglePlacer = rectanglePlacer;
 }