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

Source for file PointerStyle.php

Documentation is available at PointerStyle.php

  1. <?php
  2.  
  3. /**
  4. *
  5. * <p>Title: PointerStyle class</p>
  6. *
  7. * <p>Description: Describes the pointer style of a series pointer.</p>
  8. *
  9. * <p>Copyright (c) 2005-2008 by Steema Software SL. All Rights Reserved.</p>
  10. *
  11. * <p>Company: Steema Software SL</p>
  12. */
  13.  
  14. {
  15.  
  16.    private $upperBound 0;
  17.  
  18.    /**
  19.    * Defines the pointer as a rectangle.
  20.    */
  21.    public static $RECTANGLE 0;
  22.    /**
  23.    * Defines the pointer as a circle.
  24.    */
  25.    public static $CIRCLE 1;
  26.    /**
  27.    * Defines the pointer as a triangle.
  28.    */
  29.    public static $TRIANGLE 2;
  30.    /**
  31.    * Defines the pointer as a down pointing triangle.
  32.    */
  33.    public static $DOWNTRIANGLE 3;
  34.    /**
  35.    * Defines the pointer as a cross.
  36.    */
  37.    public static $CROSS 4;
  38.    /**
  39.    * Defines the pointer as a diagonal cross.
  40.    */
  41.    public static $DIAGCROSS 5;
  42.    /**
  43.    * Defines the pointer as a star.
  44.    */
  45.    public static $STAR 6;
  46.    /**
  47.    * Defines the pointer as a diamond.
  48.    */
  49.    public static $DIAMOND 7;
  50.    /**
  51.    * Defines the pointer as a small dot.
  52.    */
  53.    public static $SMALLDOT 8;
  54.    /**
  55.    * Defines the pointer as no shape.
  56.    */
  57.    public static $NOTHING 9;
  58.    /**
  59.    * Defines the pointer as a left triangle.
  60.    */
  61.    public static $LEFTTRIANGLE 10;
  62.    /**
  63.    * Defines the pointer as a right triangle.
  64.    */
  65.    public static $RIGHTTRIANGLE 11;
  66.    /**
  67.    * Defines the pointer as a graded sphere.
  68.    */
  69.    public static $SPHERE 12;
  70.    /**
  71.    * Defines the pointer as a polished sphere.
  72.    */
  73.    public static $POLISHEDSPHERE 13;
  74.  
  75.  
  76.    public function PointerStyle()
  77.    {
  78.       $this->upperBound++;
  79.    }
  80.  
  81.    public function size(return $this->upperBound}
  82.  
  83.    public function fromInt($value)
  84.    {
  85.       switch($value)
  86.       {
  87.          case 0:
  88.             return self::$RECTANGLE;
  89.          case 1:
  90.             return self::$CIRCLE;
  91.          case 2:
  92.             return self::$TRIANGLE;
  93.          case 3:
  94.             return self::$DOWNTRIANGLE;
  95.          case 4:
  96.             return self::$CROSS;
  97.          case 5:
  98.             return self::$DIAGCROSS;
  99.          case 6:
  100.             return self::$STAR;
  101.          case 7:
  102.             return self::$DIAMOND;
  103.          case 8:
  104.             return self::$SMALLDOT;
  105.          case 9:
  106.             return self::$NOTHING;
  107.          case 10:
  108.             return self::$LEFTTRIANGLE;
  109.          case 11:
  110.             return self::$RIGHTTRIANGLE;
  111.          case 12:
  112.             return self::$SPHERE;
  113.          default:
  114.             return self::$POLISHEDSPHERE;
  115.       }
  116.    }
  117. }
  118. ?>

Documentation generated on Wed, 16 Jun 2010 12:07:27 +0200 by phpDocumentor 1.4.1