[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/Image/Graph/ -> Grid.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: Grid.php,v 1.8 2005/02/21 20:49:47 nosey Exp $
Poids: 175 lignes (6 kb)
Inclus ou requis: 5 fois
Référencé: 0 fois
Nécessite: 1 fichier
 Image/Graph/Element.php

Définit 1 class

Image_Graph_Grid:: (6 méthodes):
  _setPrimaryAxis()
  _setSecondaryAxis()
  _getSecondaryAxisPoints()
  _pointX()
  _pointY()
  _updateCoords()


Classe: Image_Graph_Grid  - X-Ref

A grid displayed on the plotarea.

A grid is associated with a primary and a secondary axis. The grid is
displayed in context of the primary axis' label interval - meaning that a
grid for an Y-axis displays a grid for every label on the y-axis (fx. a {@link
Image_Graph_Grid_Lines}, which displays horizontal lines for every label on
the y-axis from the x-axis minimum to the x-axis maximum). You should always
add the grid as one of the first elements to the plotarea. This is due to the
fact that elements are 'outputted' in the order they are added, i.e. if an
grid is added *after* a chart, the grid will be displayed on top of the chart
which is (probably) not desired.

_setPrimaryAxis(& $axis)   X-Ref
Set the primary axis: the grid should 'refer' to

param: Image_Graph_Axis $axis The axis

_setSecondaryAxis(& $axis)   X-Ref
Set the secondary axis

param: Image_Graph_Axis $axis The axis

_getSecondaryAxisPoints()   X-Ref
Get the points on the secondary axis that the grid should 'connect'

return: array The secondary data values that should mark the grid 'end points'

_pointX($point)   X-Ref
Get the X pixel position represented by a value

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

_pointY($point)   X-Ref
Get the Y pixel position represented by a value

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

_updateCoords()   X-Ref
Causes the object to update all sub elements coordinates.




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