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

Class: Image_Graph_Text

Source Location: /Graph/Text.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Element
      |
      --Image_Graph_Text

Textual element.


Methods


Inherited Methods

Class: Image_Graph_Element

Image_Graph_Element::height()
The height of the element on the canvas
Image_Graph_Element::setBackground()
Sets the background fill style of the element
Image_Graph_Element::setBackgroundColor()
Sets the background color of the element
Image_Graph_Element::setBorderColor()
Sets the border color of the element
Image_Graph_Element::setBorderStyle()
Sets the border line style of the element
Image_Graph_Element::setFillColor()
Sets the fill color of the element
Image_Graph_Element::setFillStyle()
Sets the fill style of the element
Image_Graph_Element::setFont()
Sets the font of the element
Image_Graph_Element::setLineColor()
Sets the line color of the element
Image_Graph_Element::setLineStyle()
Sets the line style of the element
Image_Graph_Element::setPadding()
Sets padding of the element
Image_Graph_Element::showShadow()
Shows shadow on the element
Image_Graph_Element::width()
The width of the element on the canvas

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 42]
Textual element.



[ Top ]


Class Methods


constructor Image_Graph_Text [line 73]

Image_Graph_Text &Image_Graph_Text( int $x, int $y, string $text, Font &$font)

Create the text



Parameters:

int   $x   The X position (horizontal) position of the text (center point) on the canvas
int   $y   The Y position (vertical) position of the text (center point) on the canvas
string   $text   The text to display
Font   $font   The font to use in printing

[ Top ]

method height [line 113]

int height( )

The height of the text on the canvas



Tags:

return:  Number of pixels representing the height of the text


Overrides Image_Graph_Element::height() (The height of the element on the canvas)

[ Top ]

method setAlignment [line 95]

void setAlignment( int $alignment)

Set the alignment of the text



Parameters:

int   $alignment   The alignment

[ Top ]

method setText [line 86]

void setText( string $text)

Set the text



Parameters:

string   $text   The text to display

[ Top ]

method width [line 104]

int width( )

The width of the text on the canvas



Tags:

return:  Number of pixels representing the width of the text


Overrides Image_Graph_Element::width() (The width of the element on the canvas)

[ Top ]


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