예제 #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
파일: Painter.cs 프로젝트: elizShtol/fp
 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;
 }