Пример #1
0
        public void SetUp()
        {
            imageSettings = new ImageSettings();
            var imageHolder = new PictureBoxImageHolder();

            imageHolder.RecreateImage(imageSettings);
            var colorSettingsProvider = new ColorSettingsProvider();
            var filesSettings         = new FilesSettings();

            filesSettings.TextFilePath        = "..\\..\\testTextAnalyzer.txt";
            filesSettings.BoringWordsFilePath = "..\\..\\boring words.txt";
            var textAnalyzer = new TextAnalyzer(filesSettings);

            fontSettings = new FontSettings();
            var tagCreator = new TagCreator(fontSettings, new SpiralCloudLayouter(imageSettings), textAnalyzer,
                                            imageHolder);

            painter = new Painter(colorSettingsProvider, imageHolder, tagCreator);
        }
Пример #2
0
 public GradientSettingsAction(Gradient gradient, ColorSettingsProvider colorSettingsProvider)
 {
     this.gradient = gradient;
     this.colorSettingsProvider = colorSettingsProvider;
 }
Пример #3
0
 public RandomColorsSettingsAction(RandomColors randomColors, ColorSettingsProvider colorSettingsProvider)
 {
     this.randomColors          = randomColors;
     this.colorSettingsProvider = colorSettingsProvider;
 }
Пример #4
0
 public Painter(ColorSettingsProvider colorSettingsProvider, IImageHolder imageHolder, TagCreator tagCreator)
 {
     this.imageHolder           = imageHolder;
     this.colorSettingsProvider = colorSettingsProvider;
     this.tagCreator            = tagCreator;
 }
Пример #5
0
 public PaletteSettingsAction(Palette palette, ColorSettingsProvider colorSettingsProvider)
 {
     this.palette = palette;
     this.colorSettingsProvider = colorSettingsProvider;
 }