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); }
public GradientSettingsAction(Gradient gradient, ColorSettingsProvider colorSettingsProvider) { this.gradient = gradient; this.colorSettingsProvider = colorSettingsProvider; }
public RandomColorsSettingsAction(RandomColors randomColors, ColorSettingsProvider colorSettingsProvider) { this.randomColors = randomColors; this.colorSettingsProvider = colorSettingsProvider; }
public Painter(ColorSettingsProvider colorSettingsProvider, IImageHolder imageHolder, TagCreator tagCreator) { this.imageHolder = imageHolder; this.colorSettingsProvider = colorSettingsProvider; this.tagCreator = tagCreator; }
public PaletteSettingsAction(Palette palette, ColorSettingsProvider colorSettingsProvider) { this.palette = palette; this.colorSettingsProvider = colorSettingsProvider; }