PHP 클래스 GridGraph, GotCms

상속: extends Graph
파일 보기 프로젝트 열기: gotcms/gotcms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$axes_calc_done
$bar_unit_width
$flip_axes Set to true for horizontal graphs
$g_height
$g_width
$guidelines
$label_adjust_done
$label_centre Set to true for block-based labelling
$max_guide
$min_guide
$sub_x
$sub_y
$uneven_x
$uneven_y
$x0
$x_points
$y0
$y_points

보호된 메소드들

메소드 설명
Axes ( ) Draws bar or line graph axes
BuildGuideline ( &$line, &$lines, &$text, &$path, &$d ) Adds a single guideline and its title to content
CalcAxes ( ) Calculates the effect of axes, applying to padding
CalcGrid ( ) Calculates the position of grid lines
CalcGuidelines ( $g = null ) Converts guideline options to more useful member variables
ClampHorizontal ( $val )
ClampVertical ( $val ) clamps a value to the grid boundaries
ClipGrid ( &$attr ) Returns a clipping path for the grid
DOverlap ( $style, $size ) Calculates the overlap of a division or subdivision
DivisionOverlap ( ) Returns the amount of overlap the divisions and subdivisions use
DivisionsPositions ( $style, $style_default, $size, $size_default, $fullsize, $start, $axis_offset ) Returns the position and size of divisions
FindLongestAxisLabel ( $length_x, $length_y ) Determines the longest axis labels for the given axis lengths
FindSubdiv ( $grid_div, $u, $min, $min_unit, $fixed ) Find the subdivision size
GetAxes ( $ends, &$x_len, &$y_len ) Returns the X and Y axis class instances as a list
GetAxisEnds ( ) Returns an array containing the value and key axis min and max
GetGridPoints ( $length, $spacing, $start, $direction, $zero, $unit_size, $uneven ) Returns the grid points as an associative array: array($value => $position)
GetGridSubdivisions ( &$points, $spacing, $direction ) Returns the grid subdivision points as an array
GetHorizontalCount ( ) Subclasses can override this for non-linear graphs
GetLongestKey ( ) Returns the key that takes up the most space
Grid ( ) Draws the grid behind the bar / line graph
GridLines ( $path, $colour, $dash, $fill = null ) Returns a set of gridlines
GridPosition ( $key, $ikey ) Returns the grid position for a bar or point, or NULL if not on grid $key = actual value array index $ikey = integer position in array
GuidelinePath ( $axis, $value, $depth, &$x, &$y, &$w, &$h ) Creates the path data for a guideline and sets the dimensions
Guidelines ( $depth ) Returns the elements to draw the guidelines
HLabel ( &$attribs ) Returns the horizontal axis label
LabelAdjustment ( $longest_v = 1000, $longest_h = 100 ) Modifies the graph padding to allow room for labels
Labels ( $axis_text = '' ) Returns the labels grouped with the provided axis division labels
NumString ( $n ) Converts number to string
SetGridDimensions ( ) Sets up grid width and height to fill padded area
UpdateAndUnset ( &$var, &$array, $key ) Updates $var with $array[$key] and removes it from array
VLabel ( &$attribs ) Returns the vertical axis label
XAxis ( $yoff ) Returns the X axis SVG fragment
XAxisDivisions ( &$points, $style, $style_default, $size, $size_default, $yoff ) Returns X-axis divisions as a path
XAxisText ( &$points, $xoff, $yoff, $angle ) Returns the X-axis text fragment
YAxis ( $xoff ) Returns the Y axis SVG fragment
YAxisDivisions ( &$points, $style, $style_default, $size, $size_default, $xoff ) Returns Y-axis divisions as a path
YAxisText ( &$points, $xoff, $yoff, $angle ) Returns the Y-axis text fragment

메소드 상세

Axes() 보호된 메소드

Draws bar or line graph axes
protected Axes ( )

BuildGuideline() 보호된 메소드

Adds a single guideline and its title to content
protected BuildGuideline ( &$line, &$lines, &$text, &$path, &$d )

CalcAxes() 보호된 메소드

Calculates the effect of axes, applying to padding
protected CalcAxes ( )

CalcGrid() 보호된 메소드

Calculates the position of grid lines
protected CalcGrid ( )

CalcGuidelines() 보호된 메소드

Converts guideline options to more useful member variables
protected CalcGuidelines ( $g = null )

ClampHorizontal() 보호된 메소드

protected ClampHorizontal ( $val )

ClampVertical() 보호된 메소드

clamps a value to the grid boundaries
protected ClampVertical ( $val )

ClipGrid() 보호된 메소드

Returns a clipping path for the grid
protected ClipGrid ( &$attr )

DOverlap() 보호된 메소드

Calculates the overlap of a division or subdivision
protected DOverlap ( $style, $size )

DivisionOverlap() 보호된 메소드

Returns the amount of overlap the divisions and subdivisions use
protected DivisionOverlap ( )

DivisionsPositions() 보호된 메소드

Returns the position and size of divisions
protected DivisionsPositions ( $style, $style_default, $size, $size_default, $fullsize, $start, $axis_offset )

FindLongestAxisLabel() 보호된 메소드

Determines the longest axis labels for the given axis lengths
protected FindLongestAxisLabel ( $length_x, $length_y )

FindSubdiv() 보호된 메소드

Find the subdivision size
protected FindSubdiv ( $grid_div, $u, $min, $min_unit, $fixed )

GetAxes() 보호된 메소드

Returns the X and Y axis class instances as a list
protected GetAxes ( $ends, &$x_len, &$y_len )

GetAxisEnds() 보호된 메소드

Returns an array containing the value and key axis min and max
protected GetAxisEnds ( )

GetGridPoints() 보호된 메소드

Returns the grid points as an associative array: array($value => $position)
protected GetGridPoints ( $length, $spacing, $start, $direction, $zero, $unit_size, $uneven )

GetGridSubdivisions() 보호된 메소드

Returns the grid subdivision points as an array
protected GetGridSubdivisions ( &$points, $spacing, $direction )

GetHorizontalCount() 보호된 메소드

Subclasses can override this for non-linear graphs
protected GetHorizontalCount ( )

GetLongestKey() 보호된 메소드

Returns the key that takes up the most space
protected GetLongestKey ( )

Grid() 보호된 메소드

Draws the grid behind the bar / line graph
protected Grid ( )

GridLines() 보호된 메소드

Returns a set of gridlines
protected GridLines ( $path, $colour, $dash, $fill = null )

GridPosition() 보호된 메소드

Returns the grid position for a bar or point, or NULL if not on grid $key = actual value array index $ikey = integer position in array
protected GridPosition ( $key, $ikey )

GuidelinePath() 보호된 메소드

Creates the path data for a guideline and sets the dimensions
protected GuidelinePath ( $axis, $value, $depth, &$x, &$y, &$w, &$h )

Guidelines() 보호된 메소드

Returns the elements to draw the guidelines
protected Guidelines ( $depth )

HLabel() 보호된 메소드

Returns the horizontal axis label
protected HLabel ( &$attribs )

LabelAdjustment() 보호된 메소드

Modifies the graph padding to allow room for labels
protected LabelAdjustment ( $longest_v = 1000, $longest_h = 100 )

Labels() 보호된 메소드

Returns the labels grouped with the provided axis division labels
protected Labels ( $axis_text = '' )

NumString() 보호된 메소드

Converts number to string
protected NumString ( $n )

SetGridDimensions() 보호된 메소드

Sets up grid width and height to fill padded area
protected SetGridDimensions ( )

UpdateAndUnset() 보호된 메소드

Updates $var with $array[$key] and removes it from array
protected UpdateAndUnset ( &$var, &$array, $key )

VLabel() 보호된 메소드

Returns the vertical axis label
protected VLabel ( &$attribs )

XAxis() 보호된 메소드

Returns the X axis SVG fragment
protected XAxis ( $yoff )

XAxisDivisions() 보호된 메소드

Returns X-axis divisions as a path
protected XAxisDivisions ( &$points, $style, $style_default, $size, $size_default, $yoff )

XAxisText() 보호된 메소드

Returns the X-axis text fragment
protected XAxisText ( &$points, $xoff, $yoff, $angle )

YAxis() 보호된 메소드

Returns the Y axis SVG fragment
protected YAxis ( $xoff )

YAxisDivisions() 보호된 메소드

Returns Y-axis divisions as a path
protected YAxisDivisions ( &$points, $style, $style_default, $size, $size_default, $xoff )

YAxisText() 보호된 메소드

Returns the Y-axis text fragment
protected YAxisText ( &$points, $xoff, $yoff, $angle )

프로퍼티 상세

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

protected $axes_calc_done

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

protected $bar_unit_width

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

Set to true for horizontal graphs
protected $flip_axes

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

protected $g_height

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

protected $g_width

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

protected $guidelines

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

protected $label_adjust_done

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

Set to true for block-based labelling
protected $label_centre

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

protected $max_guide

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

protected $min_guide

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

protected $sub_x

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

protected $sub_y

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

protected $uneven_x

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

protected $uneven_y

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

protected $x0

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

protected $x_points

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

protected $y0

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

protected $y_points