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

Source for file MarksStyle.php

Documentation is available at MarksStyle.php

  1. <?php
  2.  
  3. /**
  4. *
  5. * <p>Title: MarksStyle class</p>
  6. *
  7. * <p>Description: Describes the possible values of Series Marks Style.</p>
  8. *
  9. @see SeriesMarks#getStyle
  10. *
  11. *  <p>Copyright (c) 2005-2008 by Steema Software SL. All Rights Reserved.</p>
  12. *
  13. *  <p>Company: Steema Software SL</p>
  14. */
  15.  
  16. class MarksStyle
  17. {
  18.    /**
  19.    * Shows the point value.
  20.    */
  21.    public static $VALUE 0;
  22.    /**
  23.    * Shows the percent the point value represents.
  24.    */
  25.    public static $PERCENT 1;
  26.    /**
  27.    * Shows the associated Point Label.
  28.    */
  29.    public static $LABEL 2;
  30.    /**
  31.    * Shows the point Label and the percent value the point represents.
  32.    */
  33.    public static $LABELPERCENT 3;
  34.    /**
  35.    * Shows the point Label and the point value.
  36.    */
  37.    public static $LABELVALUE 4;
  38.    /**
  39.    * Shows whatever is shown at Chart Legend.
  40.    */
  41.    public static $LEGEND 5;
  42.    /**
  43.    * Shows the percent the point represents together with the "of" word and
  44.    * the sum of all points absolute values.
  45.    */
  46.    public static $PERCENTTOTAL 6;
  47.    /**
  48.    * Shows the point Label toghether with the resulting "PercentTotal" style.
  49.    */
  50.    public static $LABELPERCENTTOTAL 7;
  51.    /**
  52.    * Shows the point XValue.
  53.    */
  54.    public static $XVALUE 8;
  55.    /**
  56.    * Shows the point XValue and YValue.
  57.    */
  58.    public static $XY 9;
  59.  
  60.    private function MarksStyle(/*$value*/)
  61.    {
  62.    //   parent::MarksStyle($value);
  63.    }
  64.  
  65.    public function fromInt($value)
  66.    {
  67.       switch($value)
  68.       {
  69.          case 0:
  70.             return self::$VALUE;
  71.          case 1:
  72.             return self::$PERCENT;
  73.          case 2:
  74.             return self::$LABEL;
  75.          case 3:
  76.             return self::$LABELPERCENT;
  77.          case 4:
  78.             return self::$LABELVALUE;
  79.          case 5:
  80.             return self::$LEGEND;
  81.          case 6:
  82.             return self::$PERCENTTOTAL;
  83.          case 7:
  84.             return self::$LABELPERCENTTOTAL;
  85.          case 8:
  86.             return self::$XVALUE;
  87.          default:
  88.             return self::$XY;
  89.       }
  90.    }
  91. }
  92.  
  93. ?>

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