提交的内容
This commit is contained in:
40
vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Legend.php
vendored
Executable file → Normal file
40
vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Legend.php
vendored
Executable file → Normal file
@ -48,6 +48,15 @@ class Legend
|
||||
*/
|
||||
private $layout;
|
||||
|
||||
/** @var GridLines */
|
||||
private $borderLines;
|
||||
|
||||
/** @var ChartColor */
|
||||
private $fillColor;
|
||||
|
||||
/** @var ?AxisText */
|
||||
private $legendText;
|
||||
|
||||
/**
|
||||
* Create a new Legend.
|
||||
*
|
||||
@ -60,6 +69,13 @@ class Legend
|
||||
$this->setPosition($position);
|
||||
$this->layout = $layout;
|
||||
$this->setOverlay($overlay);
|
||||
$this->borderLines = new GridLines();
|
||||
$this->fillColor = new ChartColor();
|
||||
}
|
||||
|
||||
public function getFillColor(): ChartColor
|
||||
{
|
||||
return $this->fillColor;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -148,4 +164,28 @@ class Legend
|
||||
{
|
||||
return $this->layout;
|
||||
}
|
||||
|
||||
public function getLegendText(): ?AxisText
|
||||
{
|
||||
return $this->legendText;
|
||||
}
|
||||
|
||||
public function setLegendText(?AxisText $legendText): self
|
||||
{
|
||||
$this->legendText = $legendText;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBorderLines(): GridLines
|
||||
{
|
||||
return $this->borderLines;
|
||||
}
|
||||
|
||||
public function setBorderLines(GridLines $borderLines): self
|
||||
{
|
||||
$this->borderLines = $borderLines;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user