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

Class: Image_Graph_Common

Source Location: /Image_Graph-0.8.0/Graph/Common.php

Class Overview


The ultimate ancestor of all Image_Graph classes.


Author(s):

Version:

  • Release: 0.8.0

Copyright:

  • 2003-2009 The PHP Group

Methods


Child classes:

Image_Graph_Font
A font.
Image_Graph_Element
Representation of a element.
Image_Graph_Fill
Style used for filling elements.
Image_Graph_Line_Array
A sequential array of linestyles.
Image_Graph_Line_Solid
Simple colored line style.

Inherited Variables

Inherited Methods


Class Details

[line 51]
The ultimate ancestor of all Image_Graph classes.

This class contains common functionality needed by all Image_Graph classes.



[ Top ]


Method Detail

Image_Graph_Common (Constructor)   [line 91]

Image_Graph_Common Image_Graph_Common( )

Constructor [Image_Graph_Common]

[ Top ]

add   [line 184]

Image_Graph_Common &add( Image_Graph_Common &$element)

Adds an element to the objects element list.

The new Image_Graph_elements parent is automatically set.

  • Return: The new Image_Graph_element

Overridden in child classes as:

Image_Graph_Marker_Array::add()
Add a marker style to the array
Image_Graph_Plotarea::add()
Adds an element to the plotarea
Image_Graph_Fill_Array::add()
Add a fill style to the array
Image_Graph_Line_Array::add()
Add a line style to the array

Parameters:

Image_Graph_Common   &$element   —  The new Image_Graph_element

[ Top ]

addNew   [line 210]

Image_Graph_Common &addNew( string $class, [mixed $params = null], [mixed $additional = false])

Creates an object from the class and adds it to the objects element list.

Creates an object from the class specified and adds it to the objects element list. If only one parameter is required for the constructor of the class simply pass this parameter as the $params parameter, unless the parameter is an array or a reference to a value, in that case you must 'enclose' the parameter in an array. Similar if the constructor takes more than one parameter specify the parameters in an array.


Parameters:

string   $class   —  The class for the object
mixed   $params   —  The paramaters to pass to the constructor
mixed   $additional   —  Additional parameter to be pass (optional)

[ Top ]

hide   [line 150]

void hide( )

Hide the element

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.