Source
* Recalculate $this->shiftY property for graph according header label visibility settings and visibility of graph
<?php
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
abstract class CGraphDraw {
protected $stime;
protected $fullSizeX;
protected $fullSizeY;
protected $m_minY;
protected $m_maxY;
protected $data;
protected $items;
private $header;
protected $from_time;
protected $to_time;
private $colors;
protected $colorsrgb;
protected $im;
protected $period;
protected $sizeX;
protected $sizeY;
protected $shiftXleft;
protected $shiftXright;
protected $num;
protected $type;
protected $drawLegend;
protected $graphtheme;
protected $shiftY;
/**
* Default top padding including header label height and vertical padding.
*/
const DEFAULT_HEADER_PADDING_TOP = 36;
/**
* Default font size for header label text.
*/
const DEFAULT_HEADER_LABEL_FONT_SIZE = 11;
/**
* Default value for top and bottom padding.
*/
const DEFAULT_TOP_BOTTOM_PADDING = 12;
/**
* Header label visibility.
*/