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  
    public function __construct($text, $font =  NULL, $color =  NULL, $angle =  0) {  
        // Set default color to black  
     * @param string $text New text  
        $this->text = (string) $text;  
    public function setFont(awFont $font) {  
        $this->angle = (int) $angle;  
    public function setColor(awColor $color) {  
     * @param mixed $background   
        if($background instanceof  awColor) {  
     * Change text background color  
        $this->background =  $color;  
     * Change text background gradient  
     * @param awGradient $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  
    public function setPadding($left, $right, $top, $bottom) {  
        $this->padding =  array((int) $left, (int) $right, (int) $top, (int) $bottom);  
 
 
        
       |