API Documentation

Pdf/Style.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
version
$Id: Style.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Pdf_Style

Description

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.

Zend_Pdf_Style

copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
Properties
$_fillColor
$_color
$_lineWidth
$_lineDashingPattern
$_lineDashingPhase
$_font
$_fontSize
Methods
__construct
setFillColor
setLineColor
setLineWidth
setLineDashingPattern
setFont
setFontSize
getFillColor
getLineColor
getLineWidth
getLineDashingPattern
getFont
getFontSize
getLineDashingPhase
instructions

Description

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.

Properties

$_color

Zend_Pdf_Color|null $_color = ''

Line color.

Current color, used for lines and font outlines.

Details

$_color
Zend_Pdf_Color|null
visibility
private
default
final
false
static
false

$_fillColor

Zend_Pdf_Color|null $_fillColor = 'null'

Fill color.

Used to fill geometric shapes or text.

Details

$_fillColor
Zend_Pdf_Color|null
visibility
private
default
null
final
false
static
false

$_font

Zend_Pdf_Resource_Font $_font = ''

Current font

Details

$_font
Zend_Pdf_Resource_Font
visibility
private
default
final
false
static
false

$_fontSize

float $_fontSize = ''

Font size

Details

$_fontSize
float
visibility
private
default
final
false
static
false

$_lineDashingPattern

array $_lineDashingPattern = ''

Array which describes line dashing pattern.

It's array of numeric: array($on_length, $off_length, $on_length, $off_length, ...)

Details

$_lineDashingPattern
array
visibility
private
default
final
false
static
false

$_lineDashingPhase

float $_lineDashingPhase = ''

Line dashing phase

Details

$_lineDashingPhase
float
visibility
private
default
final
false
static
false

$_lineWidth

Zend_Pdf_Element_Numeric $_lineWidth = ''

Line width.

Details

$_lineWidth
Zend_Pdf_Element_Numeric
visibility
private
default
final
false
static
false

Methods

__construct

__construct( Zend_Pdf_Style $anotherStyle = null ) :

Create style.

Arguments
$anotherStyle
Zend_Pdf_Style
Details
visibility
public
final
false
static
false

getFillColor

getFillColor( ) : Zend_Pdf_Color|null

Get fill color.

Output
Zend_Pdf_Color|null
Details
visibility
public
final
false
static
false

getFont

getFont( ) : Zend_Pdf_Resource_Font

Get current font.

Output
Zend_Pdf_Resource_Font
$font
Details
visibility
public
final
false
static
false

getFontSize

getFontSize( ) : float

Get current font size

Output
float
$fontSize
Details
visibility
public
final
false
static
false

getLineColor

getLineColor( ) : Zend_Pdf_Color|null

Get line color.

Output
Zend_Pdf_Color|null
Details
visibility
public
final
false
static
false

getLineDashingPattern

getLineDashingPattern( ) : array

Get line dashing pattern

Output
array
Details
visibility
public
final
false
static
false

getLineDashingPhase

getLineDashingPhase( ) : float

Get line dashing phase

Output
float
Details
visibility
public
final
false
static
false

getLineWidth

getLineWidth( ) : float

Get line width.

Output
float
Details
visibility
public
final
false
static
false

instructions

instructions( ) : string

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

Output
string
Details
visibility
public
final
false
static
false

setFillColor

setFillColor( Zend_Pdf_Color $color ) :

Set fill color.

Arguments
$color
Zend_Pdf_Color
Details
visibility
public
final
false
static
false

setFont

setFont( Zend_Pdf_Resource_Font $font, float $fontSize ) :

Set current font.

Arguments
$font
Zend_Pdf_Resource_Font
$fontSize
float
Details
visibility
public
final
false
static
false

setFontSize

setFontSize( float $fontSize ) :

Modify current font size

Arguments
$fontSize
float
Details
visibility
public
final
false
static
false

setLineColor

setLineColor( Zend_Pdf_Color $color ) :

Set line color.

Arguments
$color
Zend_Pdf_Color
Details
visibility
public
final
false
static
false

setLineDashingPattern

setLineDashingPattern( array $pattern, float $phase = 0 ) :

Set line dashing pattern

Arguments
$pattern
array
$phase
float
Details
visibility
public
final
false
static
false

setLineWidth

setLineWidth( float $width ) :

Set line width.

Arguments
$width
float
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.