Class Xml2PdfTag_line

Description

<line> tag.

The <line> tag is a child tag of <Xml2Pdf_Tag_graph>. It's used to add data to a graph of type line.

  1. <!-- draw a lines graph -->
  2. <graph type='line' width='120' height='50' left='60' top='220' position='absolute' color='#0197cb' legend='' repere='10'>
  3.     <line legend='first_curve'>
  4.         <point x='0' y='10'/>
  5.         <point x='5' y='15'/>
  6.         <point x='10' y='22'/>
  7.         <point x='15' y='1'/>
  8.         <point x='20' y='12'/>
  9.         <point x='25' y='15'/>
  10.     </line>
  11.     <line legend='second_curve' color='#0197cb'>
  12.         <point x='0' y='17'/>
  13.         <point x='8' y='15'/>
  14.         <point x='12' y='5'/>
  15.         <point x='15' y='6'/>
  16.         <point x='20' y='12'/>
  17.         <point x='25' y='8'/>
  18.     </line>
  19. </graph>

Located in /plugins/tags/xml2pdf.tag.line.php (line 37)

Xml2PdfTag
   |
   --Xml2PdfTag_line
Variable Summary
 object Xml2Pdf_Tag_graph $graph
 string $legend
Method Summary
 void __construct (object $pdf,  &$attributes, object $parentTag, array $attributes)
Variables
object Xml2Pdf_Tag_graph $graph (line 43)

parent graph tag.

  • access: public
string $legend (line 49)

line legend.

  • access: public

Inherited Variables

Inherited from Xml2PdfTag

Xml2PdfTag::$content
Xml2PdfTag::$pdf
Methods
Constructor __construct (line 64)

Constructor.

Parse the tag attributes and add the line to the graph.

  • access: public
void __construct (object $pdf,  &$attributes, object $parentTag, array $attributes)
  • object $pdf: objet Pdf
  • array $attributes: $tag attributes
  • object $parentTag: objet Xml2Pdf_Tag_graph
  • &$attributes

Redefinition of:
Xml2PdfTag::__construct()
Constructor.

Inherited Methods

Inherited From Xml2PdfTag

 Xml2PdfTag::__construct()
 Xml2PdfTag::addContent()
 Xml2PdfTag::close()

Documentation generated on Wed, 11 Oct 2006 22:27:25 +0200 by phpDocumentor 1.3.0