[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/Image/Graph/ -> Legend.php (sommaire)

Image_Graph - Main class for the graph creation. 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: Legend.php,v 1.16 2006/02/28 22:48:07 nosey Exp $
Poids: 385 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 1 fichier
 Image/Graph/Layout.php

Définit 1 class

Image_Graph_Legend:: (11 méthodes):
  Image_Graph_Legend()
  _plotCount()
  _parameterArray()
  _height()
  _width()
  setAlignment()
  _updateCoords()
  setPlotarea()
  _setParent()
  setShowMarker()
  _done()


Classe: Image_Graph_Legend  - X-Ref

Displays a legend for a plotarea.

A legend can be displayed in two ways:

1 As an overlayed box within the plotarea

2 Layout'ed on the canvas smewhere next to the plotarea.

Image_Graph_Legend()   X-Ref
Image_Graph_Legend [Constructor]


_plotCount()   X-Ref
The number of actual plots in the plot area

return: int The number of plotes

_parameterArray($simulate = false)   X-Ref
Get a default parameter array for legendSamples

param: bool $simulate Whether the array should be used for simulation or
return: array Default parameter array

_height()   X-Ref
The height of the element on the canvas

return: int Number of pixels representing the height of the element

_width()   X-Ref
The width of the element on the canvas

return: int Number of pixels representing the width of the element

setAlignment($alignment)   X-Ref
Set the alignment of the legend

param: int $alignment The alignment

_updateCoords()   X-Ref
Update coordinates


setPlotarea(& $plotarea)   X-Ref
Sets Plotarea

param: Image_Graph_Plotarea $plotarea The plotarea

_setParent(& $parent)   X-Ref
Sets the parent. The parent chain should ultimately be a GraPHP object

param: Image_Graph_Common $parent The parent

setShowMarker($showMarker)   X-Ref
Set if this legends should show markers

param: bool $showMarker True if markers are to be shown, false is not

_done()   X-Ref
Output the plot

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



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