Definition at line 33 of file Style.php.
◆ __construct()
__construct |
( |
|
$anotherStyle = null | ) |
|
Create style.
- Parameters
-
Definition at line 96 of file Style.php.
98 if ($anotherStyle !==
null) {
99 $this->_fillColor = $anotherStyle->_fillColor;
100 $this->_color = $anotherStyle->_color;
101 $this->_lineWidth = $anotherStyle->_lineWidth;
102 $this->_lineDashingPattern = $anotherStyle->_lineDashingPattern;
103 $this->_lineDashingPhase = $anotherStyle->_lineDashingPhase;
104 $this->_font = $anotherStyle->_font;
105 $this->_fontSize = $anotherStyle->_fontSize;
◆ getFillColor()
Get fill color.
- Returns
- Zend_Pdf_Color|null
Definition at line 189 of file Style.php.
191 return $this->_fillColor;
◆ getFont()
◆ getFontSize()
Get current font size
- Returns
- float $fontSize
Definition at line 240 of file Style.php.
242 return $this->_fontSize;
◆ getLineColor()
Get line color.
- Returns
- Zend_Pdf_Color|null
Definition at line 199 of file Style.php.
201 return $this->_color;
◆ getLineDashingPattern()
getLineDashingPattern |
( |
| ) |
|
Get line dashing pattern
- Returns
- array
Definition at line 219 of file Style.php.
221 return $this->_lineDashingPattern;
◆ getLineDashingPhase()
Get line dashing phase
- Returns
- float
Definition at line 250 of file Style.php.
252 return $this->_lineDashingPhase->value;
◆ getLineWidth()
Get line width.
- Returns
- float
Definition at line 209 of file Style.php.
211 return $this->_lineWidth->value;
◆ instructions()
Dump style to a string, which can be directly inserted into content stream
- Returns
- string
Definition at line 261 of file Style.php.
265 if ($this->_fillColor !==
null) {
269 if ($this->_color !==
null) {
273 if ($this->_lineWidth !==
null) {
277 if ($this->_lineDashingPattern !==
null) {
278 #require_once 'Zend/Pdf/Element/Array.php'; 281 #require_once 'Zend/Pdf/Element/Numeric.php'; 282 foreach ($this->_lineDashingPattern as $dashItem) {
284 $dashPattern->items[] = $dashElement;
288 . $this->_lineDashingPhase->toString() .
" d\n";
◆ setFillColor()
Set fill color.
- Parameters
-
Definition at line 115 of file Style.php.
117 $this->_fillColor = $color;
◆ setFont()
Set current font.
- Parameters
-
Definition at line 168 of file Style.php.
170 $this->_font = $font;
171 $this->_fontSize = $fontSize;
◆ setFontSize()
Modify current font size
- Parameters
-
Definition at line 179 of file Style.php.
181 $this->_fontSize = $fontSize;
◆ setLineColor()
Set line color.
- Parameters
-
Definition at line 125 of file Style.php.
127 $this->_color = $color;
◆ setLineDashingPattern()
setLineDashingPattern |
( |
|
$pattern, |
|
|
|
$phase = 0 |
|
) |
| |
Set line dashing pattern
- Parameters
-
array | $pattern | |
float | $phase | |
Definition at line 148 of file Style.php.
150 #require_once 'Zend/Pdf/Page.php'; 156 #require_once 'Zend/Pdf/Element/Numeric.php'; 157 $this->_lineDashingPattern =
$pattern;
◆ setLineWidth()
Set line width.
- Parameters
-
Definition at line 135 of file Style.php.
137 #require_once 'Zend/Pdf/Element/Numeric.php';
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Pdf/Style.php