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

Source for file CustomStack.php

Documentation is available at CustomStack.php

  1. <?php
  2.  
  3.  
  4. /**
  5. *
  6. * <p>Title: CustomStack class</p>
  7. *
  8. * <p>Description: Describes the possible values of CustomPoint.Stacked</p>
  9. *
  10. * <p>Copyright (c) 2005-2008 by Steema Software SL. All Rights
  11. * Reserved.</p>
  12. *
  13. * <p>Company: Steema Software SL</p>
  14. *
  15. * <p>Example:
  16. * <pre><font face="Courier" size="4">
  17. * $lineSeries->setStacked( CustomStack::$OVERLAP );
  18. * </font></pre></p>
  19. *
  20. */
  21. {
  22.    /**
  23.    * Series will be drawn one behind the other using different "z" depths.
  24.    */
  25.    public static $NONE 0;
  26.    /**
  27.    * Series will be drawn one over the other using the same "z" depth.
  28.    */
  29.    public static $OVERLAP 1;
  30.    /**
  31.    * Draws each series on top of the previous one by summing the values.
  32.    */
  33.    public static $STACK 2;
  34.    /**
  35.    * Adjusts each individual series to a common 0..100 axis scale.
  36.    */
  37.    public static $STACK100 3;
  38.  
  39.    public function CustomStack({}
  40.  
  41.    public function fromInt($value)
  42.    {
  43.       switch ($value)
  44.       {
  45.          case 0:
  46.             return self::$NONE;
  47.          case 1:
  48.             return self::$OVERLAP;
  49.          case 2:
  50.             return self::$STACK;
  51.          default :
  52.             return self::$STACK100;
  53.       }
  54.    }
  55. }
  56.  
  57. ?>

Documentation generated on Wed, 16 Jun 2010 12:04:57 +0200 by phpDocumentor 1.4.1