PHP Class PieGraph, GotCms

Inheritance: extends Graph
显示文件 Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$calc_done
$radius_x
$radius_y
$s_angle
$slice_styles
$x_centre for internal use
$y_centre

Public Methods

Method Description
Draw ( ) Draws the pie graph
svggpsort ( $a, $b ) Sort callback function reverse-sorts by value

Protected Methods

Method Description
Calc ( ) Calculates position of pie
CalcSlice ( $angle_start, $angle_end, &$x_start, &$y_start, &$x_end, &$y_end )
CheckValues ( &$values ) Checks that the data are valid
DrawLegendEntry ( $set, $x, $y, $w, $h ) Return box for legend
GetSlice ( $angle_start, $angle_end, &$attr ) Returns a single slice of pie

Method Details

Calc() protected method

Calculates position of pie
protected Calc ( )

CalcSlice() protected method

protected CalcSlice ( $angle_start, $angle_end, &$x_start, &$y_start, &$x_end, &$y_end )

CheckValues() protected method

Checks that the data are valid
protected CheckValues ( &$values )

Draw() public method

Draws the pie graph
public Draw ( )

DrawLegendEntry() protected method

Return box for legend
protected DrawLegendEntry ( $set, $x, $y, $w, $h )

GetSlice() protected method

Returns a single slice of pie
protected GetSlice ( $angle_start, $angle_end, &$attr )

svggpsort() public static method

Sort callback function reverse-sorts by value
public static svggpsort ( $a, $b )

Property Details

$calc_done protected_oe property

protected $calc_done

$radius_x protected_oe property

protected $radius_x

$radius_y protected_oe property

protected $radius_y

$s_angle protected_oe property

protected $s_angle

$slice_styles protected_oe property

protected $slice_styles

$x_centre protected_oe property

for internal use
protected $x_centre

$y_centre protected_oe property

protected $y_centre