Ejemplo n.º 1
0
 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> {
         "быть", "мочь"
     };
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     spiralTrack       = new SpiralTrack(new Point(0, 0), trackStep);
     rectangleLayouter = new RectangleLayouter(new Point(0, 0),
                                               spiralTrack);
 }
Ejemplo n.º 3
0
 public RectangleLayouter(Point center, IPointsTrack layoutTrack)
 {
     this.center      = center;
     this.layoutTrack = layoutTrack;
 }