Source for file Text.class.php
Documentation is available at Text.class.php 
 * This work is hereby released into the Public Domain.  
 * To view a copy of the public domain dedication,  
 * visit http://creativecommons.org/licenses/publicdomain/ or send a letter to  
 * Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.  
require_once dirname(__FILE__ ). "/../Graph.class.php";  
 * @package linea21.externals  
   * @var array Array for left, right, top and bottom paddings  
   * @param string $text Your text  
  function awText($text, $font =  NULL, $color =  NULL, $angle =  0) {  
    // Set default color to black  
   * @param string $text New text  
    $this->text = (string) $text;  
    $this->angle = (int) $angle;  
   * @param mixed $background   
    if(is_a($background, 'awColor')) {  
    } elseif(is_a($background, 'awGradient')) {  
   * Change text background color  
    $this->background =  $color;  
   * Change text background gradient  
    $this->background =  $gradient;  
   * @return Color, Gradient  
    return $this->background;  
   * @param int $left Left padding  
   * @param int $right Right padding  
   * @param int $top Top padding  
   * @param int $bottom Bottom padding  
  function setPadding($left, $right, $top, $bottom) {  
    $this->padding =  array((int) $left, (int) $right, (int) $top, (int) $bottom);  
 
 
        
       |