public TagsCloudSettings( Font font = null, Size?imageSize = null, IPointsTrack layoutTrack = null, int?tagContainerPadding = null, Color?textColor = null, Color?backgroundColor = null, HashSet <string> stopWords = null) { Font = font ?? new Font(FontFamily.GenericSansSerif, 60); ImageSize = imageSize ?? new Size(1000, 1000); LayoutTrack = layoutTrack ?? new SpiralTrack(new Point(ImageSize.Width / 2, ImageSize.Height / 2), 0.01); TagContainerPadding = tagContainerPadding ?? 1; TextColor = textColor ?? Color.DarkOrange; BackgroundColor = backgroundColor ?? Color.Gray; StopWords = stopWords ?? new HashSet <string> { "быть", "мочь" }; }
public void SetUp() { spiralTrack = new SpiralTrack(new Point(0, 0), trackStep); rectangleLayouter = new RectangleLayouter(new Point(0, 0), spiralTrack); }
public RectangleLayouter(Point center, IPointsTrack layoutTrack) { this.center = center; this.layoutTrack = layoutTrack; }