summaryrefslogtreecommitdiffstats
path: root/src/interfaces/chart.php
blob: e1e040ccfd1115b867c4574cfcd57da8421c146b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
/**
 * File containing the abstract ezcGraphChart class
 *
 * @package Graph
 * @version $id$
 * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved.
 * @license http://ez.no/licenses/new_bsd New BSD License
 */
/**
 * Class to represent a complete charts.
 *
 * @package Graph
 */
abstract class ezcGraphChart implements ezcBaseOptions
{

    /**
     * Contains all general chart options
     * 
     * @var ezcGraphChartConfig
     * @access protected
     */
    protected $options;

    /**
     * Contains subelelemnts of the chart like legend and axes
     * 
     * @var array( ezcGraphChartElement )
     * @access protected
     */
    protected $elements;

    /**
     * Contains the data of the chart
     * 
     * @var array( ezcGraphDataset )
     * @access protected
     */
    protected $data;

    /**
     * Renderer for the chart
     * 
     * @var ezcGraphRenderer
     * @access protected
     */
    protected $renderer;

    /**
     * Driver for the chart
     * 
     * @var ezcGraphDriver
     * @access protected
     */
    protected $driver;

    /**
     * Options write access
     * 
     * @throws ezcBasePropertyNotFoundException
     *          If Option could not be found
     * @throws ezcBaseValueException
     *          If value is out of range
     * @param mixed $propertyName   Option name
     * @param mixed $propertyValue  Option value;
     * @access public
     * @return void
     */
    public function __set( $propertyName, $propertyValue ) 
    {
    }

    /**
     * Renders this chart
     * 
     * Creates basic visual chart elements from the chart to be processed by 
     * the renderer.
     * 
     * @param ezcGraphRenderer $renderer Renderer fr the chart
     * @abstract
     * @access public
     * @return void
     */
    abstract public function render( ezcGraphRenderer $renderer );
}

?>
OpenPOWER on IntegriCloud