PHP 클래스 Pop\Graph\Graph\AbstractGraph

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$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