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; }
public CircularCloudLayouter(IPointsSequence pointsSequence) { this.pointsSequence = pointsSequence; rectanglePlacer = new CenterRectanglePlacer(); }
public CircularCloudLayouter(IPointsSequence pointsSequence, IRectanglePlacer rectanglePlacer) { this.pointsSequence = pointsSequence; this.rectanglePlacer = rectanglePlacer; }