[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Image/Graph/Plot/ -> Odo.php (sommaire)

Image_Graph - PEAR PHP OO Graph Rendering Utility. PHP versions 4 and 5

Author: Jesper Veggerby <pear.nosey@veggerby.dk>
Copyright: Copyright (C) 2003, 2004 Jesper Veggerby Hansen
License: http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
Version: CVS: $Id: Odo.php,v 1.3 2005/11/27 22:21:16 nosey Exp $
Poids: 719 lignes (23 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 Image/Graph/Plot.php
 Image/Graph/Tool.php

Définit 1 class

Image_Graph_Plot_Odo:: (23 méthodes):
  Image_Graph_Plot_Odo()
  setCenter()
  _value2angle()
  _initialize()
  setRange()
  setAngles()
  setRadiusWidth()
  setArrowSize()
  setArrowMarker()
  _done()
  setTickLength()
  setAxisTicks()
  _drawAxis()
  setArrowLineStyle()
  setArrowFillStyle()
  _drawArrow()
  _getMarkerData()
  _drawMarker()
  addRangeMarker()
  setRangeMarkerFillStyle()
  _drawRange()
  _drawLegendSample()
  _legendSample()


Classe: Image_Graph_Plot_Odo  - X-Ref

2D Odochart.

Image_Graph_Plot_Odo(&$dataset)   X-Ref
Plot_Odo [Constructor]

dataset with one data per arrow
param: Image_Graph_Dataset $dataset The data set (value containter) to

setCenter($centerX, $centerY)   X-Ref
Set the center of the odometer

param: int $centerX The center x point
param: int $centerY The center y point

_value2angle($value)   X-Ref
Convert a value to the angle position onto the odometer

param: int $value the value to convert
return: int the angle'position onto the odometer

_initialize()   X-Ref
set some internal var


setRange($value_min, $value_max)   X-Ref
set min and max value of the range

param: integer $value_min the minimun value of the chart or the start value
param: integer $value_max the maximum value of the chart or the end value

setAngles($deg_offset, $deg_width)   X-Ref
Set start's angle and amplitude of the chart

param: integer $deg_offset the start angle
param: integer $deg_width the angle of the chart (the length)

setRadiusWidth($radius_percent)   X-Ref
set the width of the chart

param: string $radius_percent a value between 0 and 100

setArrowSize($length, $width)   X-Ref
set the width and length of the arrow (in percent of the total plot "radius")

param: int length The length in percent
param: int width The width in percent  

setArrowMarker(&$marker)   X-Ref
Set the arrow marker

param: Image_Graph_Marker $marker The marker to set for arrow marker

_done()   X-Ref
Output the plot

return: bool Was the output 'good' (true) or 'bad' (false).

setTickLength($radius)   X-Ref
set the length of the ticks

param: string $radius_percent a value between 0 and 100

setAxisTicks($int)   X-Ref
set the length of the ticks

param: string $radius_percent a value between 0 and 100

_drawAxis()   X-Ref
Draw the outline and the axis


setArrowLineStyle($lineStyle)   X-Ref
Set the line style of the arrows

param: Image_Graph_Line $lineStyle The line style of the Arrow

setArrowFillStyle($fillStyle)   X-Ref
Set the fillstyle of the arrows

param: Image_Graph_Fill $fillStyle The fill style of the arrows

_drawArrow()   X-Ref
Draw the arrows


_getMarkerData($point, $nextPoint, $prevPoint, &$totals)   X-Ref
Calculate marker point data

param: array $point The point to calculate data for
param: array $nextPoint The next point
param: array $prevPoint The previous point
param: array $totals The pre-calculated totals, if needed
return: array An array containing marker point data

_drawMarker()   X-Ref
Draws markers of the arrows on the canvas


addRangeMarker($min, $max, $id = false)   X-Ref
Set range

dataset with two data start and end value of the range
param: Image_Graph_Dataset $dataset The data set (value containter) to

setRangeMarkerFillStyle(&$rangeMarkerFillStyle)   X-Ref
Set the fillstyle of the ranges

param: Image_Graph_Fill $fillStyle The fill style of the range

_drawRange()   X-Ref
Draw the ranges


_drawLegendSample($x0, $y0, $x1, $y1)   X-Ref
Perform the actual drawing on the legend.

param: int $x0 The top-left x-coordinate
param: int $y0 The top-left y-coordinate
param: int $x1 The bottom-right x-coordinate
param: int $y1 The bottom-right y-coordinate

_legendSample(&$param)   X-Ref
Draw a sample for use with legend

param: array $param The parameters for the legend



Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7