Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /var/www/html/php_jh_pdf-1.1.0/class.jh_pdf_text_jhpci-1.1.0.inc.php
php_jh_pdf -

jh_pdf_text_jhpci

jh_pdf_base
   |
  +-- jh_pdf_text
     |
    +-- jh_pdf_text_jhpci

JHPCI extensions for text rendering

 

public class jh_pdf_text_jhpci extends jh_pdf_text

JHPCI extensions for text rendering
Extends jh_pdf_text with JHPCI methods so it can beused together with jh_pdf_table.

 

Methods inherited from jh_pdf_text

jh_pdf_text, setwidth, setfontface, setfontsize, setfontcolor, setfontparset, setwrapmethod, addtext, getrequiredlinenum, getrequiredheight, puttext, puttext2

Methods inherited from jh_pdf_base

setcolor

Public Method Summary

void

jhpci_setwidth(float $width)

Set the width for the cell
void

jhpci_setdata(mixed $data)

Set the data for the cell
void

jhpci_getrequiredheight()

Get the required height
void

jhpci_putdata(float $xpos, float $ypos)

Put the data on the PDF document
void

setleading(integer $leading)

Set the text leading
void

setalignment(string $alignment)

Set the text alignment
void

jh_pdf_text_jhpci( &$pdf)

Warning: documentation is missing.

Fields inherited from jh_pdf_text

$pdf, $width, $currentline, $lines, $linewidths, $newparagraph, $fontface, $fontsize, $fontcolor, $fontparset, $wrapmethod, $buffer, $layoutvalid

Private Field Summary

unknown

$leading

unknown

$alignment

Public Method Details

jhpci_setwidth

public void jhpci_setwidth( float $width )

  Set the width for the cell
Gets called by the jh_pdf_table class to notify the interface classabout the width of the cell where it must place its contents into.

Parameter
float $width
The width of the cell meassured in PDF
pixels
Returns void


jhpci_setdata

public void jhpci_setdata( mixed $data )

  Set the data for the cell
Gets called by the jh_pdf_table class to notify the interface classabout the data which it must place into the cell. Please note thatthe jh_pdf_table class does not care about the type of the data,it is simply passes it through to this function!

Parameter
mixed $data
The data of the cell
Returns void


jhpci_getrequiredheight

public void jhpci_getrequiredheight( )

  Get the required height
Gets called by the jh_pdf_table class to get the required heightof the cell for putting in the contents set by jhpci_setdata()with the width set via jhpci_setwidth().

Returns void


jhpci_putdata

public void jhpci_putdata( float $xpos, float $ypos )

  Put the data on the PDF document
Gets called by the jh_pdf_table class to tell the interface classto put the data onto the PDF document at the passed coordinates.

Parameter
float $xpos
The left starting position
float $ypos
The top starting position
Returns void


setleading

public void setleading( integer $leading )

  Set the text leading
Sets the text leading which is used for output.

Parameter
integer $leading
The text leading
Returns void


setalignment

public void setalignment( string $alignment )

  Set the text alignment
Sets the text alignment which is used for output.

Parameter
string $alignment
The alignment ("LEFT"/"CENTER"/"RIGHT")
Returns void


jh_pdf_text_jhpci

public void jh_pdf_text_jhpci( &$pdf )

 

Warning: documentation is missing.

Parameter
&$pdf
Warning: documentation is missing.
Returns void


Private Field Details

$leading

private unknown $leading

>><<



$alignment

private unknown $alignment

>><<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta