PHP Класс Pop\Graph\Graph\AbstractGraph

Автор: Nick Sagona, III ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$graph Pop\Graph\Graph Show X-axis color

Открытые методы

Метод Описание
__construct ( Graph $graph ) : AbstractGraph Constructor

Защищенные методы

Метод Описание
drawDataText ( array $dataPoints, array $xAxis, array $yAxis, string $type, array $points = null, integer $skip = 1 ) : void Draw the data point text on the graph
drawXAxis ( array $xAxis, ArrayObject $points, integer $offset ) : void Draw the X Axis
drawYAxis ( array $yAxis, ArrayObject $points, integer $offset ) : void Draw the Y Axis
getPoints ( array $xAxis, array $yAxis ) : ArrayObject Get points
getQuadrant ( array $point, array $center ) : integer Method to calculate which quadrant a point is in.
getTriangle ( array $point, array $center, integer $quad ) : array Method to calculate the points and data of a triangle.
showXAxis ( array $xAxis, ArrayObject $points, integer $offset ) : void Draw the X Axis increments
showYAxis ( array $yAxis, ArrayObject $points, integer $offset ) : void Draw the Y Axis increments

Описание методов

__construct() публичный Метод

Instantiate the graph adapter object.
public __construct ( Graph $graph ) : AbstractGraph
$graph Pop\Graph\Graph
Результат AbstractGraph

drawDataText() защищенный Метод

Draw the data point text on the graph
protected drawDataText ( array $dataPoints, array $xAxis, array $yAxis, string $type, array $points = null, integer $skip = 1 ) : void
$dataPoints array
$xAxis array
$yAxis array
$type string
$points array
$skip integer
Результат void

drawXAxis() защищенный Метод

Draw the X Axis
protected drawXAxis ( array $xAxis, ArrayObject $points, integer $offset ) : void
$xAxis array
$points ArrayObject
$offset integer
Результат void

drawYAxis() защищенный Метод

Draw the Y Axis
protected drawYAxis ( array $yAxis, ArrayObject $points, integer $offset ) : void
$yAxis array
$points ArrayObject
$offset integer
Результат void

getPoints() защищенный Метод

Get points
protected getPoints ( array $xAxis, array $yAxis ) : ArrayObject
$xAxis array
$yAxis array
Результат ArrayObject

getQuadrant() защищенный Метод

Method to calculate which quadrant a point is in.
protected getQuadrant ( array $point, array $center ) : integer
$point array
$center array
Результат integer

getTriangle() защищенный Метод

Method to calculate the points and data of a triangle.
protected getTriangle ( array $point, array $center, integer $quad ) : array
$point array
$center array
$quad integer
Результат array

showXAxis() защищенный Метод

Draw the X Axis increments
protected showXAxis ( array $xAxis, ArrayObject $points, integer $offset ) : void
$xAxis array
$points ArrayObject
$offset integer
Результат void

showYAxis() защищенный Метод

Draw the Y Axis increments
protected showYAxis ( array $yAxis, ArrayObject $points, integer $offset ) : void
$yAxis array
$points ArrayObject
$offset integer
Результат void

Описание свойств

$graph защищенное свойство

Show X-axis color
protected Graph,Pop\Graph $graph
Результат Pop\Graph\Graph