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

Class: Image_Graph_Common

Source Location: /Graph/Common.php

Class Overview


The ultimate ancestor of all GraPHPite classes.


Author(s):

Methods


Child classes:

Image_Graph_Color
RGB Color representation used for advanced manipulation, such as setting alpha channel and/or calculating HSB values.
Image_Graph_Element
Representation of a element in GraPHPite.
Image_Graph_Font
A font.
Image_Graph_Line_Array
A sequential array of linestyles.
Image_Graph_Line_Solid
Simple colored line style.

Class Details

[line 95]
The ultimate ancestor of all GraPHPite classes.

This class contains common functionality needed by all GraPHPite classes.




Tags:

abstract:  


[ Top ]


Class Methods


constructor Image_Graph_Common [line 146]

Image_Graph_Common &Image_Graph_Common( )

Creates an a instance of Image_Graph_Common.

Note: Image_Graph_Common is implicitely an abstract class




[ Top ]

method add [line 178]

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



Tags:

return:  The new Image_Graph_element


Overridden in child classes as:

Image_Graph_Fill_Array::add()
Add a fill style to the array
Image_Graph_Marker_Array::add()
Add a marker 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 ]

method addColor [line 285]

void &addColor( Color &$color)

Add a color. Ultimately it should call addColor() from the Image_Graph object



Tags:

see:  Image_Graph


Overridden in child classes as:

Image_Graph::addColor()
Add a color.
Image_Graph_Fill_Array::addColor()
Add a color to the array

Parameters:

Color   $color   A representation of the color

[ Top ]

method newColor [line 300]

void newColor( int $red, [int $green = false], [int $blue = false], [int $alpha = false])

Create a new Image_Graph_color.



Overridden in child classes as:

Image_Graph::newColor()
Create a new Image_Graph_color.

Parameters:

int   $red   The red part or the whole part
int   $green   The green part (or nothing), or the alpha channel
int   $blue   The blue part (or nothing)
int   $alpha   The alpha channel (or nothing)

[ Top ]

method setName [line 155]

void setName( string $name)

Sets the name



Parameters:

string   $name   The new Image_Graph_name

[ Top ]


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