public CircularCloudLayouter(ITagsCreator creator, Point center = default(Point))
 {
     addedRectangles = new List <Rectangle>();
     spiral          = new Spiral(center);
     this.center     = center;
     this.creator    = creator;
 }
Beispiel #2
0
 public Visualizer(ICanvas canvas, IPathCreator pathCreator, ITagsCreator tagsCreator, IBackgroundPainter backgroundPainter)
 {
     this.canvas            = canvas;
     creator                = pathCreator;
     this.tagsCreator       = tagsCreator;
     this.backgroundPainter = backgroundPainter;
 }
Beispiel #3
0
 public TagCloudCreator(IStatisticsProvider statProvider, ITagsCreator tagsCreator, IRenderer renderer)
 {
     TagsCreator  = tagsCreator;
     Renderer     = renderer;
     StatProvider = statProvider;
 }
Beispiel #4
0
        public FrequencyTagsCloudWrapper(IFontProvider fontCreator, FrequencyWrapperSettings settings, ITagsCreator tagsCreator)
        {
            FontCreator = fontCreator;
            Settings    = settings;

            tagsFrequency = new Dictionary <string, int>();
            foreach (var tag in tagsCreator.GetTags())
            {
                if (!tagsFrequency.ContainsKey(tag))
                {
                    tagsFrequency[tag] = 0;
                }
                tagsFrequency[tag]++;
                MaxFrequency = Math.Max(MaxFrequency, tagsFrequency[tag]);
            }
        }
Beispiel #5
0
 public TagsCloudVisualizator(VisualizatorConfiguration configuration, ITagsCreator tagsCreator)
 {
     Configuration = configuration;
     TagsCreator   = tagsCreator;
 }