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

Class: Image_Graph_Dataset

Source Location: /Image_Graph-0.3.0dev1/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_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)
Image_Graph_Dataset_Function
Function data set, points are generated by calling an external function.

Inherited Variables

Inherited Methods


Class Details

[line 40]
Data set used to represent a data collection to plot in a chart
  • Abstract:


[ Top ]


Method Detail

Image_Graph_Dataset (Constructor)   [line 95]

Image_Graph_Dataset &Image_Graph_Dataset( )

Image_Graph_Dataset [Constructor]

[ Top ]

addPoint   [line 114]

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

Add a point to the dataset

Overridden in child classes as:

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
Image_Graph_Dataset_Function::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 ]

count   [line 135]

int count( )

The number of values in the dataset
  • 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 ]

maximumX   [line 186]

var maximumX( )

The maximum X value
  • Return: The maximum X value

Overridden in child classes as:

Image_Graph_Dataset_Sequential::maximumX()
The maximum X value

[ Top ]

maximumY   [line 204]

var maximumY( )

The maximum Y value
  • Return: The maximum Y value

[ Top ]

minimumX   [line 177]

var minimumX( )

The minimum X value
  • Return: The minimum X value

Overridden in child classes as:

Image_Graph_Dataset_Sequential::minimumX()
The minimum X value

[ Top ]

minimumY   [line 195]

var minimumY( )

The minimum Y value
  • Return: The minimum Y value

[ Top ]

setName   [line 103]

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 Mon, 11 Mar 2019 13:57:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.