PHP 클래스 Pop\Graph\Graph

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

보호된 프로퍼티들

프로퍼티 타입 설명
$adapter mixed Graph graphic adapter interface
$axisColor mixed Axis color
$axisWidth integer Axis width
$barWidth integer Bar width
$fillColor mixed Fill color
$font string Current font to use
$fontColor mixed Font color
$fontSize integer Font size
$fonts array Available fonts
$height integer Graph canvas height
$padding integer Graph canvas padding
$reverseFontColor mixed Reverse font color
$showText boolean Show data text flag
$showX boolean Show X-axis increment lines flag
$showXColor mixed Show X-axis color
$showY boolean Show Y-axis increment lines flag
$showYColor mixed Show X-axis color
$strokeColor mixed Stroke color
$strokeWidth integer Stroke width
$width integer Graph canvas width

공개 메소드들

메소드 설명
__construct ( array $options, boolean $forceGd = false ) : Graph Constructor
adapter ( ) : mixed Get the graph graphic adapter
addFont ( string $font ) : Graph Add a font to available fonts
createHBarGraph ( array $dataPoints, array $xAxis, array $yAxis ) : Graph Create a horizontal bar graph
createLineGraph ( array $dataPoints, array $xAxis, array $yAxis ) : Graph Create a line graph
createPieChart ( array $pie, array $percents, integer $explode ) : Graph Create a horizontal bar graph
createVBarGraph ( array $dataPoints, array $xAxis, array $yAxis ) : Graph Create a vertical bar graph
getAxisColor ( ) : Pop\Color\Space\ColorInterface Get the axis color
getAxisWidth ( ) : integer Get the axis width
getBarWidth ( ) : integer Get the bar width
getFillColor ( ) : mixed Get the fill color
getFont ( ) : string Get the font
getFontColor ( ) : mixed Get the font color
getFontSize ( ) : integer Get the font size
getFonts ( string $font = null ) : string Get the fonts
getHeight ( ) : integer Get the height
getPadding ( ) : integer Get the graph canvas padding
getReverseFontColor ( ) : mixed Get the reverse font color
getShowText ( ) : boolean Get the 'show data text' flag
getShowX ( ) : boolean Get the show X flag
getShowY ( ) : boolean Get the show Y flag
getStrokeColor ( ) : mixed Get the stroke color
getStrokeWidth ( ) : integer Get the stroke width
getWidth ( ) : integer Get the width
getXColor ( ) : Pop\Color\Space\ColorInterface Get the show X color
getYColor ( ) : Pop\Color\Space\ColorInterface Get the show Y color
output ( boolean $download = false ) : void Output the graph
save ( string $to = null, boolean $append = false ) : Graph Save the graph image to disk
setAxisOptions ( Pop\Color\Space\ColorInterface $color = null, integer $width = 2 ) : Graph Set the axis options
setBarWidth ( integer $width ) : Graph Set the bar width
setFillColor ( Pop\Color\Space\ColorInterface $color ) : Graph Set the fill color
setFont ( string $font = null ) : Graph Set the font to use from the available fonts
setFontColor ( Pop\Color\Space\ColorInterface $color ) : Graph Set the font color
setFontSize ( integer $size ) : Graph Set the font size
setPadding ( integer $pad ) : Graph Set the graph canvas padding
setReverseFontColor ( Pop\Color\Space\ColorInterface $color ) : Graph Set the reverse font color
setStrokeColor ( Pop\Color\Space\ColorInterface $color ) : Graph Set the stroke color
setStrokeWidth ( integer $width = 1 ) : Graph Set the stroke width
showText ( boolean $showText ) : Graph Set the 'show data text' flag
showX ( boolean $showX, Pop\Color\Space\ColorInterface $color = null ) : Graph Set the 'show X-axis increment lines' flag
showY ( boolean $showY, Pop\Color\Space\ColorInterface $color = null ) : Graph Set the 'show Y-axis increment lines' flag

메소드 상세

__construct() 공개 메소드

Instantiate the graph object.
public __construct ( array $options, boolean $forceGd = false ) : Graph
$options array
$forceGd boolean
리턴 Graph

adapter() 공개 메소드

Get the graph graphic adapter
public adapter ( ) : mixed
리턴 mixed

addFont() 공개 메소드

Add a font to available fonts
public addFont ( string $font ) : Graph
$font string
리턴 Graph

createHBarGraph() 공개 메소드

Create a horizontal bar graph
public createHBarGraph ( array $dataPoints, array $xAxis, array $yAxis ) : Graph
$dataPoints array
$xAxis array
$yAxis array
리턴 Graph

createLineGraph() 공개 메소드

Create a line graph
public createLineGraph ( array $dataPoints, array $xAxis, array $yAxis ) : Graph
$dataPoints array
$xAxis array
$yAxis array
리턴 Graph

createPieChart() 공개 메소드

Create a horizontal bar graph
public createPieChart ( array $pie, array $percents, integer $explode ) : Graph
$pie array
$percents array
$explode integer
리턴 Graph

createVBarGraph() 공개 메소드

Create a vertical bar graph
public createVBarGraph ( array $dataPoints, array $xAxis, array $yAxis ) : Graph
$dataPoints array
$xAxis array
$yAxis array
리턴 Graph

getAxisColor() 공개 메소드

Get the axis color
public getAxisColor ( ) : Pop\Color\Space\ColorInterface
리턴 Pop\Color\Space\ColorInterface

getAxisWidth() 공개 메소드

Get the axis width
public getAxisWidth ( ) : integer
리턴 integer

getBarWidth() 공개 메소드

Get the bar width
public getBarWidth ( ) : integer
리턴 integer

getFillColor() 공개 메소드

Get the fill color
public getFillColor ( ) : mixed
리턴 mixed

getFont() 공개 메소드

Get the font
public getFont ( ) : string
리턴 string

getFontColor() 공개 메소드

Get the font color
public getFontColor ( ) : mixed
리턴 mixed

getFontSize() 공개 메소드

Get the font size
public getFontSize ( ) : integer
리턴 integer

getFonts() 공개 메소드

Get the fonts
public getFonts ( string $font = null ) : string
$font string
리턴 string

getHeight() 공개 메소드

Get the height
public getHeight ( ) : integer
리턴 integer

getPadding() 공개 메소드

Get the graph canvas padding
public getPadding ( ) : integer
리턴 integer

getReverseFontColor() 공개 메소드

Get the reverse font color
public getReverseFontColor ( ) : mixed
리턴 mixed

getShowText() 공개 메소드

Get the 'show data text' flag
public getShowText ( ) : boolean
리턴 boolean

getShowX() 공개 메소드

Get the show X flag
public getShowX ( ) : boolean
리턴 boolean

getShowY() 공개 메소드

Get the show Y flag
public getShowY ( ) : boolean
리턴 boolean

getStrokeColor() 공개 메소드

Get the stroke color
public getStrokeColor ( ) : mixed
리턴 mixed

getStrokeWidth() 공개 메소드

Get the stroke width
public getStrokeWidth ( ) : integer
리턴 integer

getWidth() 공개 메소드

Get the width
public getWidth ( ) : integer
리턴 integer

getXColor() 공개 메소드

Get the show X color
public getXColor ( ) : Pop\Color\Space\ColorInterface
리턴 Pop\Color\Space\ColorInterface

getYColor() 공개 메소드

Get the show Y color
public getYColor ( ) : Pop\Color\Space\ColorInterface
리턴 Pop\Color\Space\ColorInterface

output() 공개 메소드

Output the graph
public output ( boolean $download = false ) : void
$download boolean
리턴 void

save() 공개 메소드

Save the graph image to disk
public save ( string $to = null, boolean $append = false ) : Graph
$to string
$append boolean
리턴 Graph

setAxisOptions() 공개 메소드

Set the axis options
public setAxisOptions ( Pop\Color\Space\ColorInterface $color = null, integer $width = 2 ) : Graph
$color Pop\Color\Space\ColorInterface
$width integer
리턴 Graph

setBarWidth() 공개 메소드

Set the bar width
public setBarWidth ( integer $width ) : Graph
$width integer
리턴 Graph

setFillColor() 공개 메소드

Set the fill color
public setFillColor ( Pop\Color\Space\ColorInterface $color ) : Graph
$color Pop\Color\Space\ColorInterface
리턴 Graph

setFont() 공개 메소드

Set the font to use from the available fonts
public setFont ( string $font = null ) : Graph
$font string
리턴 Graph

setFontColor() 공개 메소드

Set the font color
public setFontColor ( Pop\Color\Space\ColorInterface $color ) : Graph
$color Pop\Color\Space\ColorInterface
리턴 Graph

setFontSize() 공개 메소드

Set the font size
public setFontSize ( integer $size ) : Graph
$size integer
리턴 Graph

setPadding() 공개 메소드

Set the graph canvas padding
public setPadding ( integer $pad ) : Graph
$pad integer
리턴 Graph

setReverseFontColor() 공개 메소드

Set the reverse font color
public setReverseFontColor ( Pop\Color\Space\ColorInterface $color ) : Graph
$color Pop\Color\Space\ColorInterface
리턴 Graph

setStrokeColor() 공개 메소드

Set the stroke color
public setStrokeColor ( Pop\Color\Space\ColorInterface $color ) : Graph
$color Pop\Color\Space\ColorInterface
리턴 Graph

setStrokeWidth() 공개 메소드

Set the stroke width
public setStrokeWidth ( integer $width = 1 ) : Graph
$width integer
리턴 Graph

showText() 공개 메소드

Set the 'show data text' flag
public showText ( boolean $showText ) : Graph
$showText boolean
리턴 Graph

showX() 공개 메소드

Set the 'show X-axis increment lines' flag
public showX ( boolean $showX, Pop\Color\Space\ColorInterface $color = null ) : Graph
$showX boolean
$color Pop\Color\Space\ColorInterface
리턴 Graph

showY() 공개 메소드

Set the 'show Y-axis increment lines' flag
public showY ( boolean $showY, Pop\Color\Space\ColorInterface $color = null ) : Graph
$showY boolean
$color Pop\Color\Space\ColorInterface
리턴 Graph

프로퍼티 상세

$adapter 보호되어 있는 프로퍼티

Graph graphic adapter interface
protected mixed $adapter
리턴 mixed

$axisColor 보호되어 있는 프로퍼티

Axis color
protected mixed $axisColor
리턴 mixed

$axisWidth 보호되어 있는 프로퍼티

Axis width
protected int $axisWidth
리턴 integer

$barWidth 보호되어 있는 프로퍼티

Bar width
protected int $barWidth
리턴 integer

$fillColor 보호되어 있는 프로퍼티

Fill color
protected mixed $fillColor
리턴 mixed

$font 보호되어 있는 프로퍼티

Current font to use
protected string $font
리턴 string

$fontColor 보호되어 있는 프로퍼티

Font color
protected mixed $fontColor
리턴 mixed

$fontSize 보호되어 있는 프로퍼티

Font size
protected int $fontSize
리턴 integer

$fonts 보호되어 있는 프로퍼티

Available fonts
protected array $fonts
리턴 array

$height 보호되어 있는 프로퍼티

Graph canvas height
protected int $height
리턴 integer

$padding 보호되어 있는 프로퍼티

Graph canvas padding
protected int $padding
리턴 integer

$reverseFontColor 보호되어 있는 프로퍼티

Reverse font color
protected mixed $reverseFontColor
리턴 mixed

$showText 보호되어 있는 프로퍼티

Show data text flag
protected bool $showText
리턴 boolean

$showX 보호되어 있는 프로퍼티

Show X-axis increment lines flag
protected bool $showX
리턴 boolean

$showXColor 보호되어 있는 프로퍼티

Show X-axis color
protected mixed $showXColor
리턴 mixed

$showY 보호되어 있는 프로퍼티

Show Y-axis increment lines flag
protected bool $showY
리턴 boolean

$showYColor 보호되어 있는 프로퍼티

Show X-axis color
protected mixed $showYColor
리턴 mixed

$strokeColor 보호되어 있는 프로퍼티

Stroke color
protected mixed $strokeColor
리턴 mixed

$strokeWidth 보호되어 있는 프로퍼티

Stroke width
protected int $strokeWidth
리턴 integer

$width 보호되어 있는 프로퍼티

Graph canvas width
protected int $width
리턴 integer