dataset
[ class tree: dataset ] [ index: dataset ] [ all elements ]

Class: Image_Graph_Dataset

Source Location: /Graph/Dataset.php

Class Overview


Data set used to represent a data collection to plot in a chart


Author(s):

Methods


Child classes:

Image_Graph_Dataset_Function
Function data set, points are generated by calling an external function.
Image_Graph_Dataset_Trivial
Trivial data set, simply add points (x, y) 1 by 1
Image_Graph_Dataset_VectorFunction
Vector Function data set, points are generated by calling 2 external functions, x = sin(t) and y = cos(t)

Class Details

[line 38]
Data set used to represent a data collection to plot in a chart



Tags:

abstract:  


[ Top ]


Class Methods


constructor Image_Graph_Dataset [line 93]

Image_Graph_Dataset &Image_Graph_Dataset( )

Image_Graph_Dataset [Constructor]



[ Top ]

method addPoint [line 112]

void addPoint( int $x, [int $y = false], [var $ID = false])

Add a point to the dataset



Overridden in child classes as:

Image_Graph_Dataset_Function::addPoint()
Add a point to the dataset.
Image_Graph_Dataset_Trivial::addPoint()
Add a point to the dataset
Image_Graph_Dataset_Sequential::addPoint()
Add a point to the dataset
Image_Graph_Dataset_VectorFunction::addPoint()
Add a point to the dataset

Parameters:

int   $x   The X value to add
int   $y   The Y value to add, can be omited
var   $ID   The ID of the point

[ Top ]

method count [line 133]

int count( )

The number of values in the dataset



Tags:

return:  The number of values in the dataset


Overridden in child classes as:

Image_Graph_Dataset_Trivial::count()
The number of values in the dataset

[ Top ]

method maximumX [line 184]

var maximumX( )

The maximum X value



Tags:

return:  The maximum X value


Overridden in child classes as:

Image_Graph_Dataset_Sequential::maximumX()
The maximum X value

[ Top ]

method maximumY [line 202]

var maximumY( )

The maximum Y value



Tags:

return:  The maximum Y value


[ Top ]

method minimumX [line 175]

var minimumX( )

The minimum X value



Tags:

return:  The minimum X value


Overridden in child classes as:

Image_Graph_Dataset_Sequential::minimumX()
The minimum X value

[ Top ]

method minimumY [line 193]

var minimumY( )

The minimum Y value



Tags:

return:  The minimum Y value


[ Top ]

method setName [line 101]

void setName( string $name)

Sets the name of the data set, used for legending



Parameters:

string   $name   The name of the dataset

[ Top ]


Documentation generated on Fri, 12 Nov 2004 08:25:14 +0100 by phpDocumentor 1.3.0RC3