[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libs/artichow/php5/ -> Plot.class.php (sommaire)

Graph using X and Y axis

Poids: 1480 lignes (29 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

awPlotAxis:: (3 méthodes):
  __construct()
  xAxis()
  yAxis()

awPlotGroup:: (21 méthodes):
  __construct()
  setXAxisZero()
  setYAxisZero()
  setYMin()
  setYMax()
  setXMin()
  setXMax()
  getXMin()
  getXMax()
  getX()
  getRealYMin()
  getRealYMax()
  getRealY()
  init()
  drawComponent()
  drawEnvelope()
  isAxisUsed()
  createGrid()
  selectYAxis()
  selectXAxis()
  getXAxisNumber()

Définit 21 fonctions

  __construct()
  getValues()
  reduce()
  getXAxisNumber()
  setXAxis()
  getXAxis()
  setXAxisZero()
  setYAxisZero()
  setYAxis()
  getYAxis()
  setYMin()
  setYMax()
  setXMin()
  setXMax()
  getYMin()
  getYMax()
  getXMin()
  getXMax()
  getRealYMin()
  getRealYMax()
  init()
  drawEnvelope()
  createGrid()
  setValues()
  getLimit()
  updateAxis()
  checkArray()

Classe: awPlotAxis  - X-Ref

__construct()   X-Ref
Build the group of axis


xAxis(awAxis $axis)   X-Ref
Pas de description

yAxis(awAxis $axis)   X-Ref
Pas de description

Classe: awPlotGroup  - X-Ref

A graph with axis can contain some groups of components

__construct()   X-Ref
Build the PlotGroup


setXAxisZero($zero)   X-Ref
Set the X axis on zero or not

param: bool $zero

setYAxisZero($zero)   X-Ref
Set the Y axis on zero or not

param: bool $zero

setYMin($value)   X-Ref
Change min value for Y axis
Set NULL for auto selection.

param: float $value

setYMax($value)   X-Ref
Change max value for Y axis
Set NULL for auto selection.

param: float $value

setXMin($value)   X-Ref
Change min value for X axis
Set NULL for auto selection.

param: float $value

setXMax($value)   X-Ref
Change max value for X axis
Set NULL for auto selection.

param: float $value

getXMin()   X-Ref
Get min value for X axis

return: float $value

getXMax()   X-Ref
Get max value for X axis

return: float $value

getX($type)   X-Ref
Pas de description

getRealYMin($axis = NULL)   X-Ref
Get min value with spaces for Y axis

param: string $axis Axis name
return: float $value

getRealYMax($axis = NULL)   X-Ref
Get max value with spaces for Y axis

param: string $axis Axis name
return: float $value

getRealY($type, $axis)   X-Ref
Pas de description

init(awDrawer $drawer)   X-Ref
Pas de description

drawComponent(awDrawer $drawer, $x1, $y1, $x2, $y2, $aliasing)   X-Ref
Pas de description

drawEnvelope(awDrawer $drawer)   X-Ref
Pas de description

isAxisUsed($axis)   X-Ref
Is the specified axis used ?

param: string $axis Axis name
return: bool

createGrid()   X-Ref
Pas de description

selectYAxis()   X-Ref
Pas de description

selectXAxis()   X-Ref
Pas de description

getXAxisNumber()   X-Ref
Pas de description

Fonctions
Fonctions qui ne font pas partie d'une Classe:

__construct()   X-Ref
Build the plot


getValues()   X-Ref
Get plot values

return: array

reduce($number)   X-Ref
Reduce number of values in the plot

param: int $number Reduce number of values to $number

getXAxisNumber()   X-Ref
Count values in the plot

return: int

setXAxis($axis)   X-Ref
Change X axis

param: int $axis

getXAxis()   X-Ref
Get X axis

return: int

setXAxisZero($zero)   X-Ref
Set X axis on zero

param: bool $zero

setYAxisZero($zero)   X-Ref
Set Y axis on zero

param: bool $zero

setYAxis($axis)   X-Ref
Change Y axis

param: int $axis

getYAxis()   X-Ref
Get Y axis

return: int

setYMin($value)   X-Ref
Change min value for Y axis
Set NULL for auto selection.

param: float $value

setYMax($value)   X-Ref
Change max value for Y axis
Set NULL for auto selection.

param: float $value

setXMin($value)   X-Ref
Change min value for X axis
Set NULL for auto selection.

param: float $value

setXMax($value)   X-Ref
Change max value for X axis
Set NULL for auto selection.

param: float $value

getYMin()   X-Ref
Get min value for Y axis

return: float $value

getYMax()   X-Ref
Get max value for Y axis

return: float $value

getXMin()   X-Ref
Get min value for X axis

return: float $value

getXMax()   X-Ref
Get max value for X axis

return: float $value

getRealYMin()   X-Ref
Get min value with spaces for Y axis

return: float $value

getRealYMax()   X-Ref
Get max value with spaces for Y axis

return: float $value

init(awDrawer $drawer)   X-Ref
Pas de description

drawEnvelope(awDrawer $drawer)   X-Ref
Pas de description

createGrid()   X-Ref
Pas de description

setValues($datay, $datax = NULL)   X-Ref
Change values of Y axis
This method ignores not numeric values

param: array $datay
param: array $datax

getLimit()   X-Ref
Return begin and end values

return: array

updateAxis()   X-Ref
Return TRUE if labels must be centered on X axis, FALSE otherwise

return: bool

checkArray(&$array)   X-Ref
Pas de description



Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics