linea21-externals
[ class tree: linea21-externals ] [ index: linea21-externals ] [ all elements ]

Class: awPlot

Source Location: /class/system/artichow/php4/Plot.class.php

Class Overview

awComponent
   |
   --awPlot

Graph using X and Y axis


Variables

Methods


Child classes:

BarPlot
LinePlot
Simple LinePlot Useful to draw simple horizontal lines
ScatterPlot

Class Details

[line 28]
Graph using X and Y axis



[ Top ]


Class Variables

$datax =

[line 42]

Values for X axis


Type:   array


[ Top ]

$datay =

[line 35]

Values for Y axis


Type:   array


[ Top ]

$grid =

[line 49]

Grid properties


Type:   Grid


[ Top ]

$xAxis =

[line 56]

X axis


Type:   Axis


[ Top ]

$xAxisPosition =  PLOT_BOTTOM

[line 70]

Position of X axis


Type:   int


[ Top ]

$xAxisZero =  TRUE

[line 77]

Set X axis on zero ?


Type:   bool


[ Top ]

$xMax =  NULL

[line 119]

Change max value for X axis


Type:   mixed


[ Top ]

$xMin =  NULL

[line 112]

Change min value for X axis


Type:   mixed


[ Top ]

$yAxis =

[line 63]

Y axis


Type:   Axis


[ Top ]

$yAxisPosition =  PLOT_LEFT

[line 91]

Position of Y axis


Type:   int


[ Top ]

$yAxisZero =  FALSE

[line 84]

Set Y axis on zero ?


Type:   bool


[ Top ]

$yMax =  NULL

[line 105]

Change max value for Y axis


Type:   mixed


[ Top ]

$yMin =  NULL

[line 98]

Change min value for Y axis


Type:   mixed


[ Top ]



Class Methods


constructor awPlot [line 160]

awPlot awPlot( )

Build the plot



[ Top ]

method checkArray [line 688]

void checkArray( &$array)



Parameters:

   &$array  

[ Top ]

method createGrid [line 563]

void createGrid( )



[ Top ]

method drawEnvelope [line 501]

void drawEnvelope( $driver)



Parameters:

   $driver  

[ Top ]

method getLimit [line 651]

array getLimit( )

Return begin and end values



[ Top ]

method getRealYMax [line 418]

float getRealYMax( )

Get max value with spaces for Y axis



[ Top ]

method getRealYMin [line 403]

float getRealYMin( )

Get min value with spaces for Y axis



[ Top ]

method getValues [line 191]

array getValues( )

Get plot values



[ Top ]

method getXAxis [line 260]

int getXAxis( )

Get X axis



[ Top ]

method getXAxisNumber [line 241]

int getXAxisNumber( )

Count values in the plot



Overridden in child classes as:

awBarPlot::getXAxisNumber()
awLinePlot::getXAxisNumber()
awSimpleLinePlot::getXAxisNumber()

[ Top ]

method getXMax [line 394]

float getXMax( )

Get max value for X axis



Overridden in child classes as:

awBarPlot::getXMax()

[ Top ]

method getXMin [line 385]

float getXMin( )

Get min value for X axis



[ Top ]

method getYAxis [line 296]

int getYAxis( )

Get Y axis



[ Top ]

method getYMax [line 368]

float getYMax( )

Get max value for Y axis



[ Top ]

method getYMin [line 351]

float getYMin( )

Get min value for Y axis



[ Top ]

method init [line 428]

void init( $driver)



Parameters:

   $driver  

[ Top ]

method reduce [line 200]

void reduce( int $number)

Reduce number of values in the plot



Parameters:

int   $number   Reduce number of values to $number

[ Top ]

method setValues [line 610]

void setValues( array $datay, [array $datax = NULL])

Change values of Y axis This method ignores not numeric values



Parameters:

array   $datay  
array   $datax  

[ Top ]

method setXAxis [line 251]

void setXAxis( int $axis)

Change X axis



Parameters:

int   $axis  

[ Top ]

method setXAxisZero [line 269]

void setXAxisZero( bool $zero)

Set X axis on zero



Parameters:

bool   $zero  

[ Top ]

method setXMax [line 341]

void setXMax( float $value)

Change max value for X axis Set NULL for auto selection.



Parameters:

float   $value  

[ Top ]

method setXMin [line 330]

void setXMin( float $value)

Change min value for X axis Set NULL for auto selection.



Parameters:

float   $value  

[ Top ]

method setYAxis [line 287]

void setYAxis( int $axis)

Change Y axis



Parameters:

int   $axis  

[ Top ]

method setYAxisZero [line 278]

void setYAxisZero( bool $zero)

Set Y axis on zero



Parameters:

bool   $zero  

[ Top ]

method setYMax [line 318]

void setYMax( float $value)

Change max value for Y axis Set NULL for auto selection.



Parameters:

float   $value  

[ Top ]

method setYMin [line 306]

void setYMin( float $value)

Change min value for Y axis Set NULL for auto selection.



Parameters:

float   $value  

[ Top ]

method updateAxis [line 675]

bool updateAxis( )

Return TRUE if labels must be centered on X axis, FALSE otherwise



[ Top ]


Documentation generated on Sat, 08 Nov 2008 14:54:07 +0100 by phpDocumentor 1.4.1