[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/Image/Graph/Axis/ -> Radar.php (sommaire)

Class for axis handling. 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: Radar.php,v 1.6 2005/08/03 21:22:11 nosey Exp $
Poids: 204 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 1 fichier
 Image/Graph/Axis/Category.php

Définit 1 class

Image_Graph_Axis_Radar:: (8 méthodes):
  _getMinimum()
  _getMaximum()
  _calcDelta()
  _point()
  _size()
  setDistanceFromEnd()
  _drawAxisLines()
  _drawTick()


Classe: Image_Graph_Axis_Radar  - X-Ref

Displays an 'X'-axis in a radar plot chart.

This axis maps the number of elements in the dataset to a angle (from 0-
360 degrees). Displaying the axis consist of drawing a number of lines from
center to the edge of the 'circle' than encloses the radar plot. The labels
are drawn on the 'ends' of these radial lines.

_getMinimum()   X-Ref
Gets the minimum value the axis will show.

This is always 0

return: double The minumum value

_getMaximum()   X-Ref
Gets the maximum value the axis will show.

This is always the number of labels passed to the constructor.

return: double The maximum value

_calcDelta()   X-Ref
Calculate the delta value (the number of pixels representing one unit
on the axis)

return: double The label interval

_point($value)   X-Ref
Get the pixel position represented by a value on the canvas

param: double $value the value to get the pixel-point for
return: double The pixel position along the axis

_size()   X-Ref
Get the size in pixels of the axis.

For a radar plot this is always 0

return: int The size of the axis

setDistanceFromEnd($distance = 5)   X-Ref
Sets the distance from the end of the category lines to the label.

param: int $distance The distance in pixels

_drawAxisLines()   X-Ref
Draws axis lines.


_drawTick($value, $level = 1)   X-Ref
Output an axis tick mark.

param: int $value The value to output



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