Path

ez components / documentation / api reference / 2007.2.1 / graph


eZ Components 2007.2.1

Graph

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Source for file graph.php

Documentation is available at graph.php

  1. <?php
  2. /**
  3.  * File containing the abstract ezcGraph class
  4.  *
  5.  * @package Graph
  6.  * @version 1.2
  7.  * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
  8.  * @license http://ez.no/licenses/new_bsd New BSD License
  9.  */
 10. /**
 11.  * Base options class for all eZ components.
 12.  *
 13.  * @version 1.2
 14.  * @package Graph
 15.  */
 16. class ezcGraph
 17. {
 18.     /**
 19.      * No symbol, will fallback to a rect in the legend
 20.      */
 21.     const NO_SYMBOL 0;
 22.     /**
 23.      * Rhomb like looking symbol
 24.      */
 25.     const DIAMOND 1;
 26.     /**
 27.      * Filled circle
 28.      */
 29.     const BULLET 2;
 30.     /**
 31.      * Non filled circle
 32.      */
 33.     const CIRCLE 3;
 34.  
 35.     /**
 36.      * Constant used for background repetition. No repeat.
 37.      */
 38.     const NO_REPEAT 0;
 39.     /**
 40.      * Constant used for background repetition. Repeat along the x axis. May be
 41.      * used as a bitmask together with ezcGraph::VERTICAL.
 42.      */
 43.     const HORIZONTAL 1;
 44.     /**
 45.      * Constant used for background repetition. Repeat along the y axis. May be
 46.      * used as a bitmask together with ezcGraph::HORIZONTAL.
 47.      */
 48.     const VERTICAL 2;
 49.  
 50.     /**
 51.      * Constant used for positioning of elements. May be used as a bitmask
 52.      * together with other postioning constants.
 53.      * Element will be placed at the top of the current boundings.
 54.      */
 55.     const TOP 1;
 56.     /**
 57.      * Constant used for positioning of elements. May be used as a bitmask
 58.      * together with other postioning constants.
 59.      * Element will be placed at the bottom of the current boundings.
 60.      */
 61.     const BOTTOM 2;
 62.     /**
 63.      * Constant used for positioning of elements. May be used as a bitmask
 64.      * together with other postioning constants.
 65.      * Element will be placed at the left of the current boundings.
 66.      */
 67.     const LEFT 4;
 68.     /**
 69.      * Constant used for positioning of elements. May be used as a bitmask
 70.      * together with other postioning constants.
 71.      * Element will be placed at the right of the current boundings.
 72.      */
 73.     const RIGHT 8;
 74.     /**
 75.      * Constant used for positioning of elements. May be used as a bitmask
 76.      * together with other postioning constants.
 77.      * Element will be placed at the horizontalcenter of the current boundings.
 78.      */
 79.     const CENTER 16;
 80.     /**
 81.      * Constant used for positioning of elements. May be used as a bitmask
 82.      * together with other postioning constants.
 83.      * Element will be placed at the vertical middle of the current boundings.
 84.      */
 85.     const MIDDLE 32;
 86.  
 87.     /**
 88.      * Display type for datasets. Pie may only be used with pie charts.
 89.      */
 90.     const PIE 1;
 91.     /**
 92.      * Display type for datasets. Bar and line charts may contain datasets of
 93.      * type ezcGraph::LINE.
 94.      */
 95.     const LINE 2;
 96.     /**
 97.      * Display type for datasets. Bar and line charts may contain datasets of
 98.      * type ezcGraph::BAR.
 99.      */
100.     const BAR 3;
101.     /**
102.      * @TODO:
103.      */
104.     const ODOMETER 4;
105.  
106.     /**
107.      * Font type definition. Used for True Type fonts.
108.      */
109.     const TTF_FONT 1;
110.     /**
111.      * Font type definition. Used for Postscript Type 1 fonts.
112.      */
113.     const PS_FONT 2;
114.     /**
115.      * Font type definition. Used for Palm Format Fonts for Ming driver.
116.      */
117.     const PALM_FONT 3;
118.  
119.     /**
120.      * Identifier for keys in complex dataset arrays
121.      */
122.     const KEY 0;
123.     /**
124.      * Identifier for values in complex dataset arrays
125.      */
126.     const VALUE 1;
127. }
128.  
129. ?>
Last updated: Thu, 31 Jan 2008