TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Source for file ImageExportFormat.php

Documentation is available at ImageExportFormat.php

  1. <?php
  2.  
  3.  /**
  4.  * ImageExportFormat class
  5.  *
  6.  * Description:
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @subpackage exports
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16.  class ImageExportFormat extends TeeBase {
  17.  
  18.     private $width;
  19.     private $height;
  20.     public $fileExtension = "";
  21.     protected $format = null;
  22.  
  23.     // Interceptors
  24.     function __get$property {
  25.       $method ="get{$property}";
  26.       if method_exists$this$method ) ) {
  27.         return $this->$method();
  28.       }
  29.     }
  30.  
  31.     function __set $property,$value {
  32.       $method ="set{$property}";
  33.       if method_exists$this$method ) ) {
  34.         return $this->$method($value);
  35.       }
  36.     }
  37.  
  38.     public function ImageExportFormat($chart{
  39.         parent::__construct($chart);
  40.         $r $chart->getChartBounds();
  41.         $this->width $r->width;
  42.         $this->height $r->height;
  43.  
  44.         /*
  45.                  if ((height != 0) && (width != 0)) {
  46.             chart.getExport().chartWidthHeightRatio = (double) width /
  47.                     (double) height;
  48.                  }
  49.          */
  50.     }
  51.  
  52.     public function getHeight({
  53.         return $this->height;
  54.     }
  55.  
  56.     public function getWidth({
  57.         return $this->width;
  58.     }
  59.  
  60.     public function setWidth($value{
  61.         $this->width $value;
  62.     }
  63.  
  64.     public function setHeight($value{
  65.         $this->height $value;
  66.     }
  67.  
  68. /*    public function save($fileName) /*throws IOException {
  69.         $outfile = new File($fileName);
  70.         $ios = $this->ImageIO->createImageOutputStream($outfile);
  71.         $this->save2($ios);
  72.         $ios->close();
  73.     }
  74. */
  75.  
  76.     public function save($ios/* TODO throws IOException*/ {
  77.     }        
  78. }
  79. ?>

Documentation generated on Wed, 16 Jun 2010 12:06:26 +0200 by phpDocumentor 1.4.1