Pdf/Style.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Version
$Id$  

\Zend_Pdf_Style

Package: Zend_Pdf
Style object.
Style object doesn't directly correspond to any PDF file object. It's utility class, used as a container for style information. It's used by Zend_Pdf_Page class in draw operations.
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprivate\Zend_Pdf_Color|null $_color
Line color.
Current color, used for lines and font outlines.
Details
Type
\Zend_Pdf_Color | null
>VPropertyprivate\Zend_Pdf_Color|null $_fillColor = null
Fill color.
Used to fill geometric shapes or text.
Default valuenullDetails
Type
\Zend_Pdf_Color | null
>VPropertyprivate\Zend_Pdf_Resource_Font $_font
Current font
>VPropertyprivatefloat $_fontSize
Font size
Details
Type
float
>VPropertyprivatearray $_lineDashingPattern
Array which describes line dashing pattern.
It's array of numeric: array($on_length, $off_length, $on_length, $off_length, ...)
Details
Type
array
>VPropertyprivatefloat $_lineDashingPhase
Line dashing phase
Details
Type
float
>VPropertyprivate\Zend_Pdf_Element_Numeric $_lineWidth
Line width.

Methods

methodpublic__construct(\Zend_Pdf_Style $anotherStyle = null) : void

Create style.

Parameters
NameTypeDescription
$anotherStyle\Zend_Pdf_Style
methodpublicgetFillColor() : \Zend_Pdf_Color | null

Get fill color.

Returns
TypeDescription
\Zend_Pdf_Color | null
methodpublicgetFont() : \Zend_Pdf_Resource_Font

Get current font.

Returns
TypeDescription
\Zend_Pdf_Resource_Font$font
methodpublicgetFontSize() : float

Get current font size

Returns
TypeDescription
float$fontSize
methodpublicgetLineColor() : \Zend_Pdf_Color | null

Get line color.

Returns
TypeDescription
\Zend_Pdf_Color | null
methodpublicgetLineDashingPattern() : array

Get line dashing pattern

Returns
TypeDescription
array
methodpublicgetLineDashingPhase() : float

Get line dashing phase

Returns
TypeDescription
float
methodpublicgetLineWidth() : float

Get line width.

Returns
TypeDescription
float
methodpublicinstructions() : string

Dump style to a string, which can be directly inserted into content stream

Returns
TypeDescription
string
methodpublicsetFillColor(\Zend_Pdf_Color $color) : void

Set fill color.

Parameters
NameTypeDescription
$color\Zend_Pdf_Color
methodpublicsetFont(\Zend_Pdf_Resource_Font $font, float $fontSize) : void

Set current font.

Parameters
NameTypeDescription
$font\Zend_Pdf_Resource_Font
$fontSizefloat
methodpublicsetFontSize(float $fontSize) : void

Modify current font size

Parameters
NameTypeDescription
$fontSizefloat
methodpublicsetLineColor(\Zend_Pdf_Color $color) : void

Set line color.

Parameters
NameTypeDescription
$color\Zend_Pdf_Color
methodpublicsetLineDashingPattern(array $pattern, float $phase = 0) : void

Set line dashing pattern

Parameters
NameTypeDescription
$patternarray
$phasefloat
methodpublicsetLineWidth(float $width) : void

Set line width.

Parameters
NameTypeDescription
$widthfloat
Documentation was generated by phpDocumentor 2.2.0 .