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

Class: Image_Graph_Font

Source Location: /Graph/Font.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Font

A font.


Author(s):

Methods


Child classes:

Image_Graph_Font_Extended
A font with extended functionality.
Image_Graph_Font_Vertical
A vertical font

Inherited Methods

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Creates an a instance of Image_Graph_Common.
Image_Graph_Common::add()
Adds an element to the objects element list, the new Image_Graph_elements parent is automatically set
Image_Graph_Common::addColor()
Add a color. Ultimately it should call addColor() from the Image_Graph object
Image_Graph_Common::newColor()
Create a new Image_Graph_color.
Image_Graph_Common::setName()
Sets the name

Class Details

[line 43]
A font.



Tags:



[ Top ]


Class Methods


constructor Image_Graph_Font [line 56]

Image_Graph_Font &Image_Graph_Font( )

Image_Graph_Font [Constructor]



[ Top ]

method height [line 99]

int height( string $text)

Get the height of the text specified in pixels



Tags:

return:  The height of the text using the specified font


Overridden in child classes as:

Image_Graph_Font_TTF::height()
Get the height of the text specified in pixels
Image_Graph_Font_Vertical::height()
Get the height of the text specified in pixels

Parameters:

string   $text   The text to calc the height for

[ Top ]

method setColor [line 65]

void setColor( Color &$color)

Set the color of the font



Parameters:

Color   $color   The color object of the Font

[ Top ]

method width [line 89]

int width( string $text)

Get the width of the text specified in pixels



Tags:

return:  The width of the text using the specified font


Overridden in child classes as:

Image_Graph_Font_TTF::width()
Get the width of the text specified in pixels
Image_Graph_Font_Vertical::width()
Get the width of the text specified in pixels

Parameters:

string   $text   The text to calc the width for

[ Top ]


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