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

Class: Image_Graph_Common

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

Class Overview


The ultimate ancestor of all Image_Graph classes.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • Copyright (C) 2003, 2004 Jesper Veggerby Hansen

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 72]
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 112]

Image_Graph_Common Image_Graph_Common( )

Constructor [Image_Graph_Common]

[ Top ]

add   [line 198]

Image_Graph_Common &add( &$element, 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
   &$element   — 

[ Top ]

addNew   [line 222]

Image_Graph_Common &addNew( string $class, [mixed $params = null], [ $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
   $additional   — 

[ Top ]

hide   [line 165]

void hide( )

Hide the element

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:37:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.