[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
[Code source] [Imprimer] [Statistiques]
Image_Graph - PEAR PHP OO Graph Rendering Utility. PHP versions 4 and 5
Author: | Jesper Veggerby <pear.nosey@veggerby.dk> |
Copyright: | Copyright (C) 2003, 2004 Jesper Veggerby Hansen |
License: | http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 |
Version: | CVS: $Id: Pie.php,v 1.19 2005/11/27 22:21:16 nosey Exp $ |
Poids: | 623 lignes (23 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 1 fichier Image/Graph/Plot.php |
Image_Graph_Plot_Pie:: (10 méthodes):
_drawLegendSample()
_getMarkerData()
_drawMarker()
explode()
setStartingAngle()
setDiameter()
setRestGroup()
_getDiameter()
_done()
_legendSample()
Classe: Image_Graph_Plot_Pie - X-Ref
2D Piechart._drawLegendSample($x0, $y0, $x1, $y1) X-Ref |
Perform the actual drawing on the legend. param: int $x0 The top-left x-coordinate param: int $y0 The top-left y-coordinate param: int $x1 The bottom-right x-coordinate param: int $y1 The bottom-right y-coordinate |
_getMarkerData($point, $nextPoint, $prevPoint, &$totals) X-Ref |
Calculate marker point data param: array $point The point to calculate data for param: array $nextPoint The next point param: array $prevPoint The previous point param: array $totals The pre-calculated totals, if needed return: array An array containing marker point data |
_drawMarker() X-Ref |
Draws markers on the canvas |
explode($explode, $x = false) X-Ref |
Explodes a piece of this pie chart param: int $explode Radius to explode with (or an array) param: string $x The 'x' value to explode or omitted |
setStartingAngle($angle = 0, $direction = 'ccw') X-Ref |
Set the starting angle of the plot East is 0 degrees South is 90 degrees West is 180 degrees North is 270 degrees It is also possible to specify the direction of the plot angles (i.e. clockwise 'cw' or counterclockwise 'ccw') |
setDiameter($diameter) X-Ref |
Set the diameter of the pie plot (i.e. the number of pixels the pie plot should be across) Use 'max' for the maximum possible diameter Use negative values for the maximum possible - minus this value (fx -2 to leave 1 pixel at each side) param: mixed @diameter The number of pixels |
setRestGroup($limit, $title = 'The rest') X-Ref |
Set the limit for the y-value, where values below are grouped together as "the rest" param: double $limit The limit param: string $title The title to display in the legends (default 'The |
_getDiameter() X-Ref |
Get the diameter of the plot return: int The number of pixels the diameter is |
_done() X-Ref |
Output the plot return: bool Was the output 'good' (true) or 'bad' (false). |
_legendSample(&$param) X-Ref |
Draw a sample for use with legend param: array $param The parameters for the legend |
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |