for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* JPGraph v4.0.3
*/
namespace Amenadiel\JpGraph\Graph;
* @class LineProperty
* // Description: Holds properties for a line
class LineProperty
{
public $iWeight = 1;
public $iColor = 'black';
public $iStyle = 'solid';
public $iShow = false;
public function __construct($aWeight = 1, $aColor = 'black', $aStyle = 'solid')
$this->iWeight = $aWeight;
$this->iColor = $aColor;
$this->iStyle = $aStyle;
}
public function SetColor($aColor)
public function SetWeight($aWeight)
public function SetStyle($aStyle)
public function Show($aShow = true)
$this->iShow = $aShow;
public function Stroke($aImg, $aX1, $aY1, $aX2, $aY2)
if ($this->iShow) {
$aImg->PushColor($this->iColor);
$oldls = $aImg->line_style;
$oldlw = $aImg->line_weight;
$aImg->SetLineWeight($this->iWeight);
$aImg->SetLineStyle($this->iStyle);
$aImg->StyleLine($aX1, $aY1, $aX2, $aY2);
$aImg->PopColor($this->iColor);
$aImg->line_style = $oldls;
$aImg->line_weight = $oldlw;