Source for file Tools.class.php
Documentation is available at Tools.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";  
 * Objects capable of being positioned  
 * @package linea21.externals  
     * @param int $h Horizontal alignment  
     * @param int $v Vertical alignment  
    public function setAlign($h =  NULL, $v =  NULL);  
 * Manage left, right, top and bottom sides  
 * @package linea21.externals  
    public function __construct($left =  NULL, $right =  NULL, $top =  NULL, $bottom =  NULL) {  
        $this->set($left, $right, $top, $bottom);  
    public function set($left =  NULL, $right =  NULL, $top =  NULL, $bottom =  NULL) {  
            $this->left = (float) $left;  
            $this->right = (float) $right;  
            $this->top = (float) $top;  
            $this->bottom = (float) $bottom;  
     * Add values to each side  
    public function add($left =  NULL, $right =  NULL, $top =  NULL, $bottom =  NULL) {  
            $this->left += (float) $left;  
            $this->right += (float) $right;  
            $this->top += (float) $top;  
            $this->bottom += (float) $bottom;  
 
 
        
       |