本文整理汇总了PHP中Amenadiel\JpGraph\Graph\Graph::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Graph::__construct方法的具体用法?PHP Graph::__construct怎么用?PHP Graph::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Amenadiel\JpGraph\Graph\Graph
的用法示例。
在下文中一共展示了Graph::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($aWidth = 300, $aHeight = 200, $aCachedName = "", $aTimeOut = 0, $aInline = true)
{
parent::__construct($aWidth, $aHeight, $aCachedName, $aTimeOut, $aInline);
$this->SetDensity(TICKD_DENSE);
$this->SetBox();
$this->SetMarginColor('white');
}
示例2: __construct
public function __construct($width = 300, $height = 200, $cachedName = "", $timeout = 0, $inline = 1)
{
parent::__construct($width, $height, $cachedName, $timeout, $inline);
$this->posx = $width / 2;
$this->posy = $height / 2;
$this->SetColor([255, 255, 255]);
if ($this->graph_theme) {
$this->graph_theme->ApplyGraph($this);
}
}
示例3: __construct
public function __construct($width = 300, $height = 200, $cachedName = "", $timeout = 0, $inline = 1)
{
parent::__construct($width, $height, $cachedName, $timeout, $inline);
$this->posx = $width / 2;
$this->posy = $height / 2;
$this->len = min($width, $height) * 0.35;
$this->SetColor(array(255, 255, 255));
$this->SetTickDensity(TICKD_NORMAL);
$this->SetScale('lin');
$this->SetGridDepth(DEPTH_FRONT);
}
示例4: __construct
public function __construct($width = 300, $height = 200, $cachedName = "", $timeout = 0, $inline = 1)
{
parent::__construct($width, $height, $cachedName, $timeout, $inline);
$this->posx = $width / 2;
$this->posy = $height / 2;
$this->SetColor('white');
$this->title->SetFont(FF_VERDANA, FS_NORMAL, 12);
$this->title->SetMargin(8);
$this->subtitle->SetFont(FF_VERDANA, FS_NORMAL, 10);
$this->subtitle->SetMargin(0);
$this->subsubtitle->SetFont(FF_VERDANA, FS_NORMAL, 8);
$this->subsubtitle->SetMargin(0);
}
示例5: __construct
public function __construct($aWidth = 0, $aHeight = 0, $aCachedName = "", $aTimeOut = 0, $aInline = true)
{
// Backward compatibility
if ($aWidth == -1) {
$aWidth = 0;
}
if ($aHeight == -1) {
$aHeight = 0;
}
if ($aWidth < 0 || $aHeight < 0) {
Util\JpGraphError::RaiseL(6002);
//("You can't specify negative sizes for Gantt graph dimensions. Use 0 to indicate that you want the library to automatically determine a dimension.");
}
parent::__construct($aWidth, $aHeight, $aCachedName, $aTimeOut, $aInline);
$this->scale = new GanttScale($this->img);
// Default margins
$this->img->SetMargin(15, 17, 25, 15);
$this->hgrid = new HorizontalGridLine();
$this->scale->ShowHeaders(GANTT_HWEEK | GANTT_HDAY);
$this->SetBox();
}