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 = falseActivate/Deactivate the automatic rendering of exception
Default valuefalseDetails- Type
- boolean



integer $_horizontalPosition = 'left'Horizontal position of the barcode in the rendering resource
Default value'left'Details- Type
- integer



integer $_leftOffset = 0Offset of the barcode from the left of the rendering resource
Default value0Details- Type
- integer



string $_rendererNamespace = 'Zend_Barcode_Renderer'Namespace of the renderer for autoloading
Default value'Zend_Barcode_Renderer'Details- Type
- string



integer $_topOffset = 0Offset of the barcode from the top of the rendering resource
Default value0Details- 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) : voidCalculate the left and top offset of the barcode in the
rendering support
Parameters| Name | Type | Description |
|---|
| $supportHeight | float | |
|---|
| $supportWidth | float | |
|---|



_drawPolygon(array $points, integer $color, boolean $filled = true) : voidabstractDraw a polygon in the rendering resource
Parameters| Name | 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) : voidabstractDraw a polygon in the rendering resource
Parameters| Name | Type | Description |
|---|
| $text | string | |
|---|
| $size | float | |
|---|
| $position | array | |
|---|
| $font | string | |
|---|
| $color | integer | |
|---|
| $alignment | string | |
|---|
| $orientation | float | |
|---|



setAutomaticRenderError(boolean $value) : voidActivate/Deactivate the automatic rendering of exception
Parameters| Name | Type | Description |
|---|
| $value | boolean | |
|---|



setHorizontalPosition(string $value) : \Zend_Barcode_RendererHorizontal position of the barcode in the rendering resource
Parameters| Name | Type | Description |
|---|
| $value | string | |
|---|
ReturnsDetails- Throw
-



setLeftOffset(integer $value) : \Zend_Barcode_RendererManually adjust left position
Parameters| Name | Type | Description |
|---|
| $value | integer | |
|---|
ReturnsDetails- Throw
-



setOptions(array $options) : \Zend_Renderer_ObjectSet renderer state from options array
Parameters| Name | Type | Description |
|---|
| $options | array | |
|---|
Returns 


setRendererNamespace(string $namespace) : \Zend_Renderer_ObjectSet renderer namespace for autoloading
Parameters| Name | Type | Description |
|---|
| $namespace | string | |
|---|
Returns 


setTopOffset(integer $value) : \Zend_Barcode_RendererManually adjust top position
Parameters| Name | Type | Description |
|---|
| $value | integer | |
|---|
ReturnsDetails- Throw
-



setVerticalPosition(string $value) : \Zend_Barcode_RendererVertical position of the barcode in the rendering resource
Parameters| Name | Type | Description |
|---|
| $value | string | |
|---|
ReturnsDetails- Throw
-