Barcode/Renderer/RendererAbstract.php
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_Barcode
- Subpackage
- Renderer
- Version
- $Id$
\Zend_Barcode_Renderer_RendererAbstract
Package: Zend_BarcodeClass for rendering the barcode
- Children
- \Zend_Barcode_Renderer_Pdf
- \Zend_Barcode_Renderer_Image
- \Zend_Barcode_Renderer_Svg
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
boolean $_automaticRenderError = false
Activate/Deactivate the automatic rendering of exception
Default valuefalse
Details- Type
- boolean
integer $_horizontalPosition = 'left'
Horizontal position of the barcode in the rendering resource
Default value'left'
Details- Type
- integer
integer $_leftOffset = 0
Offset of the barcode from the left of the rendering resource
Default value0
Details- Type
- integer
string $_rendererNamespace = 'Zend_Barcode_Renderer'
Namespace of the renderer for autoloading
Default value'Zend_Barcode_Renderer'
Details- Type
- string
integer $_topOffset = 0
Offset of the barcode from the top of the rendering resource
Default value0
Details- Type
- integer
integer $_verticalPosition = 'top'
Vertical position of the barcode in the rendering resource
Default value'top'
Details- Type
- integer
Methods
_adjustPosition(float $supportHeight, float $supportWidth) : void
Calculate the left and top offset of the barcode in the
rendering support
ParametersName | Type | Description |
---|
$supportHeight | float | |
---|
$supportWidth | float | |
---|
_drawPolygon(array $points, integer $color, boolean $filled = true) : void
abstractDraw a polygon in the rendering resource
ParametersName | Type | Description |
---|
$points | array | |
---|
$color | integer | |
---|
$filled | boolean | |
---|
_drawText(string $text, float $size, array $position, string $font, integer $color, string $alignment = 'center', float $orientation = 0) : void
abstractDraw a polygon in the rendering resource
ParametersName | Type | Description |
---|
$text | string | |
---|
$size | float | |
---|
$position | array | |
---|
$font | string | |
---|
$color | integer | |
---|
$alignment | string | |
---|
$orientation | float | |
---|
setAutomaticRenderError(boolean $value) : void
Activate/Deactivate the automatic rendering of exception
ParametersName | Type | Description |
---|
$value | boolean | |
---|
setHorizontalPosition(string $value) : \Zend_Barcode_Renderer
Horizontal position of the barcode in the rendering resource
ParametersName | Type | Description |
---|
$value | string | |
---|
ReturnsDetails- Throw
-
setLeftOffset(integer $value) : \Zend_Barcode_Renderer
Manually adjust left position
ParametersName | Type | Description |
---|
$value | integer | |
---|
ReturnsDetails- Throw
-
setOptions(array $options) : \Zend_Renderer_Object
Set renderer state from options array
ParametersName | Type | Description |
---|
$options | array | |
---|
Returns setRendererNamespace(string $namespace) : \Zend_Renderer_Object
Set renderer namespace for autoloading
ParametersName | Type | Description |
---|
$namespace | string | |
---|
Returns setTopOffset(integer $value) : \Zend_Barcode_Renderer
Manually adjust top position
ParametersName | Type | Description |
---|
$value | integer | |
---|
ReturnsDetails- Throw
-
setVerticalPosition(string $value) : \Zend_Barcode_Renderer
Vertical position of the barcode in the rendering resource
ParametersName | Type | Description |
---|
$value | string | |
---|
ReturnsDetails- Throw
-