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

Class: awPlot

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

Class Overview

awComponent
   |
   --awPlot

Graph using X and Y axis


Author(s):

Variables

Constants

Methods


Child classes:

BarPlot
LinePlot
Simple LinePlot Useful to draw simple horizontal lines
ScatterPlot

Class Details

[line 28]
Graph using X and Y axis



Tags:

abstract:  


[ Top ]


Class Variables

$datax =

[line 42]

Values for X axis



Tags:

access:  protected

Type:   array


[ Top ]

$datay =

[line 35]

Values for Y axis



Tags:

access:  protected

Type:   array


[ Top ]

$grid =

[line 49]

Grid properties



Tags:

access:  public

Type:   Grid


[ Top ]

$xAxis =

[line 56]

X axis



Tags:

access:  public

Type:   Axis


[ Top ]

$xAxisPosition =  awPlot::BOTTOM

[line 70]

Position of X axis



Tags:

access:  protected

Type:   int


[ Top ]

$xAxisZero =  TRUE

[line 77]

Set X axis on zero ?



Tags:

access:  protected

Type:   bool


[ Top ]

$yAxis =

[line 63]

Y axis



Tags:

access:  public

Type:   Axis


[ Top ]

$yAxisPosition =  awPlot::LEFT

[line 91]

Position of Y axis



Tags:

access:  protected

Type:   int


[ Top ]

$yAxisZero =  FALSE

[line 84]

Set Y axis on zero ?



Tags:

access:  protected

Type:   bool


[ Top ]



Class Methods


constructor __construct [line 160]

awPlot __construct( )

Build the plot



Tags:

access:  public


[ Top ]

method createGrid [line 567]

void createGrid( )



Tags:

access:  protected


[ Top ]

method drawEnvelope [line 505]

void drawEnvelope( awDriver $driver)



Tags:

access:  public


Parameters:

awDriver   $driver  

[ Top ]

method getLimit [line 655]

array getLimit( )

Return begin and end values



Tags:

access:  protected


[ Top ]

method getRealYMax [line 418]

float getRealYMax( )

Get max value with spaces for Y axis



Tags:

access:  public


[ Top ]

method getRealYMin [line 403]

float getRealYMin( )

Get min value with spaces for Y axis



Tags:

access:  public


[ Top ]

method getValues [line 191]

array getValues( )

Get plot values



Tags:

access:  public


[ Top ]

method getXAxis [line 260]

int getXAxis( )

Get X axis



Tags:

access:  public


[ Top ]

method getXAxisNumber [line 241]

int getXAxisNumber( )

Count values in the plot



Tags:

access:  public


Overridden in child classes as:

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

[ Top ]

method getXCenter [line 677]

bool getXCenter( )

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



Tags:

abstract:  
access:  public


Overridden in child classes as:

awBarPlot::getXCenter()
awLinePlot::getXCenter()
awSimpleLinePlot::getXCenter()
awScatterPlot::getXCenter()

[ Top ]

method getXMax [line 394]

float getXMax( )

Get max value for X axis



Tags:

access:  public


Overridden in child classes as:

awBarPlot::getXMax()

[ Top ]

method getXMin [line 385]

float getXMin( )

Get min value for X axis



Tags:

access:  public


[ Top ]

method getYAxis [line 296]

int getYAxis( )

Get Y axis



Tags:

access:  public


[ Top ]

method getYMax [line 368]

float getYMax( )

Get max value for Y axis



Tags:

access:  public


[ Top ]

method getYMin [line 351]

float getYMin( )

Get min value for Y axis



Tags:

access:  public


[ Top ]

method init [line 428]

void init( awDriver $driver)



Tags:

access:  public


Parameters:

awDriver   $driver  

[ Top ]

method reduce [line 200]

void reduce( int $number)

Reduce number of values in the plot



Tags:

access:  public


Parameters:

int   $number   Reduce number of values to $number

[ Top ]

method setValues [line 614]

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

Change values of Y axis This method ignores not numeric values



Tags:

access:  public


Parameters:

array   $datay  
array   $datax  

[ Top ]

method setXAxis [line 251]

void setXAxis( int $axis)

Change X axis



Tags:

access:  public


Parameters:

int   $axis  

[ Top ]

method setXAxisZero [line 269]

void setXAxisZero( bool $zero)

Set X axis on zero



Tags:

access:  public


Parameters:

bool   $zero  

[ Top ]

method setXMax [line 341]

void setXMax( float $value)

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



Tags:

access:  public


Parameters:

float   $value  

[ Top ]

method setXMin [line 330]

void setXMin( float $value)

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



Tags:

access:  public


Parameters:

float   $value  

[ Top ]

method setYAxis [line 287]

void setYAxis( int $axis)

Change Y axis



Tags:

access:  public


Parameters:

int   $axis  

[ Top ]

method setYAxisZero [line 278]

void setYAxisZero( bool $zero)

Set Y axis on zero



Tags:

access:  public


Parameters:

bool   $zero  

[ Top ]

method setYMax [line 318]

void setYMax( float $value)

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



Tags:

access:  public


Parameters:

float   $value  

[ Top ]

method setYMin [line 306]

void setYMin( float $value)

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



Tags:

access:  public


Parameters:

float   $value  

[ Top ]


Class Constants

BOTH =  'both'

[line 154]

Both left/right or top/bottom axis


[ Top ]

BOTTOM =  'bottom'

[line 147]

Bottom axis


[ Top ]

LEFT =  'left'

[line 126]

Left axis


[ Top ]

RIGHT =  'right'

[line 133]

Right axis


[ Top ]

TOP =  'top'

[line 140]

Top axis


[ Top ]



Documentation generated on Thu, 03 May 2012 15:07:24 +0200 by phpDocumentor 1.4.1