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

Source for file HorizLine.php

Documentation is available at HorizLine.php

  1. <?php
  2.  
  3.  
  4.  
  5. /**
  6.   *
  7.   * <p>Title: HorizLine class</p>
  8.   *
  9.   * <p>Description: Horizontal Line Series.</p>
  10.   *
  11.   * <p>Example:
  12.   * <pre><font face="Courier" size="4">
  13.   *  lineSeries = new com.steema.teechart.styles.HorizLine(myChart.getChart());
  14.   *  lineSeries.fillSampleValues(8);
  15.   *  lineSeries.getPointer().setVisible(true);
  16.   * </font></pre></p>
  17.   *
  18.   * <p>Copyright (c) 2005-2007 by Steema Software SL. All Rights
  19.   *  Reserved.</p>
  20.   *
  21.   * <p>Company: Steema Software SL</p>
  22.   *
  23.   */
  24.  class HorizLine extends Line {
  25.  
  26.     // Interceptors
  27.     function __get$property {
  28.       $method ="get{$property}";
  29.       if method_exists$this$method ) ) {
  30.         return $this->$method();
  31.       }
  32.     }
  33.  
  34.     function __set $property,$value {
  35.       $method ="set{$property}";
  36.       if method_exists$this$method ) ) {
  37.         return $this->$method($value);
  38.       }
  39.     }
  40.  
  41.  
  42.     public function HorizLine($c=null{
  43.         parent::Line($c);
  44.         
  45.         $this->setHorizontal();
  46.         $this->getPointer()->setDefaultVisible(false);
  47.         $this->calcVisiblePoints = false;
  48.         $this->getXValues()->setOrder(ValueListOrder::$NONE);
  49.         $this->getYValues()->setOrder(ValueListOrder::$ASCENDING);
  50.     }
  51.  
  52.         /**
  53.           * Gets descriptive text.
  54.           *
  55.           * @return String 
  56.           */
  57.     public function getDescription({
  58.         return Language::getString("GalleryHorizLine");
  59.     }
  60. }
  61.  
  62. ?>

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