Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public PaletteAction(PaintingSettings paintingSettings)
 {
     this.paintingSettings = paintingSettings;
 }
Ejemplo n.º 3
0
 public void OneTimeSetUp()
 {
     settings = new PaintingSettings();
     painter  = new OneColorPainter(settings);
 }
Ejemplo n.º 4
0
 public TagCloudVisualizer(ICanvas canvas, PaintingSettings paintingSettings)
 {
     this.canvas           = canvas;
     this.paintingSettings = paintingSettings;
 }