function __construct(Boundary $bound, $text = NULL, Font $font = NULL, Color $color = NULL, $align = self::ALIGN_LEFT_TOP) { parent::__construct($bound, $color); $this->text($text) or $this->text = ''; $this->font($font) or $this->font = Font::getDefault(); $this->align($align) or $this->align = self::ALIGN_LEFT_TOP; }
function __construct($bounds) { $this->bound = Boundary::copyOrDefault($bounds); $this->title = ['text' => 'Диаграмма', 'color' => Color::getDefault(), 'font' => Font::getDefault(), 'margin' => ['top' => 10, 'bottom' => 10]]; $this->values = ['bgcolors' => [Color::getDefault()], 'fgcolors' => [Color::getDefault()], 'font' => Font::getDefault(), 'labels' => TRUE]; $this->bgcolor = new Color(255, 255, 255); }
function __construct($bound) { parent::__construct($bound); $this->axis = ['bgcolor' => new Color(255, 255, 255, 0), 'fgcolor' => Color::getDefault(), 'font_x' => Font::getDefault(), 'font_y' => Font::getDefault(), 'visible' => TRUE, 'y_lines' => TRUE]; }