[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/Image/Graph/Plotarea/ -> Map.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: Map.php,v 1.10 2006/02/28 22:48:07 nosey Exp $
Poids: 304 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 1 fichier
 Image/Graph/Plotarea.php

Définit 1 class

Image_Graph_Plotarea_Map:: (13 méthodes):
  Image_Graph_Plotarea_Map()
  _fillLeft()
  _fillTop()
  _fillRight()
  _fillBottom()
  _setExtrema()
  _pointX()
  _pointY()
  hideAxis()
  addMappoint()
  addPoint()
  _updateCoords()
  _done()


Classe: Image_Graph_Plotarea_Map  - X-Ref

Plot area used for map plots.

A map plot is a chart that displays a map (fx. a world map) in the form of  .
png file. The maps must be located in the /Images/Maps folder and a
corresponding .txt files mush also exist in this location where named
locations are mapped to an (x, y) coordinate of the map picture (this text
file is tab separated with 'Name' 'X' 'Y' values, fx 'Denmark 378 223'). The
x-values in the dataset are then the named locations (fx 'Denmark') and the
y-values are then the data to plot. Currently the best (if not only) use is
to combine a map plot area with a {@link Image_Graph_Plot_Dot} using {@link
Image_Graph_Marker_PercentageCircle} as marker.

Image_Graph_Plotarea_Map($map)   X-Ref
PlotareaMap [Constructor]

param: string $map The name of the map, i.e. the [name].png and  [name].

_fillLeft()   X-Ref
Left boundary of the background fill area

return: int Leftmost position on the canvas

_fillTop()   X-Ref
Top boundary of the background fill area

return: int Topmost position on the canvas

_fillRight()   X-Ref
Right boundary of the background fill area

return: int Rightmost position on the canvas

_fillBottom()   X-Ref
Bottom boundary of the background fill area

return: int Bottommost position on the canvas

_setExtrema(& $plot)   X-Ref
Set the extrema of the axis

param: Image_Graph_Plot $plot The plot that 'hold' the values

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

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

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

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

hideAxis()   X-Ref
Hides the axis


addMappoint($latitude, $longitude, $name)   X-Ref
Add a point to the maps

param: int $latitude The latitude of the point
param: int $longiude The longitude of the point
param: string $name The name of the plot

addPoint($x, $y, $name)   X-Ref
Add a point to the maps

param: int $x The latitude of the point
param: int $y The longitude of the point
param: string $name The name of the plot

_updateCoords()   X-Ref
Update coordinates


_done()   X-Ref
Output the plotarea to the canvas

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