private IPaintingSettings GetSettings(Options options)
        {
            var settings = new PaintingSettings
            {
                Font          = new Font(options.Font, 1),
                ColorProvider = options.Colors != null
                    ? (IColorProvider) new SimpleColorProvider(options.Colors)
                    : new RandomColorProvider(),
                ImageSize = new Size(options.Width, options.Height)
            };

            return(settings);
        }
Beispiel #2
0
 public PaletteAction(PaintingSettings paintingSettings)
 {
     this.paintingSettings = paintingSettings;
 }
Beispiel #3
0
 public void OneTimeSetUp()
 {
     settings = new PaintingSettings();
     painter  = new OneColorPainter(settings);
 }
Beispiel #4
0
 public TagCloudVisualizer(ICanvas canvas, PaintingSettings paintingSettings)
 {
     this.canvas           = canvas;
     this.paintingSettings = paintingSettings;
 }