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

Class: Image_Graph_Legend

Source Location: /Graph/Legend.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Element
      |
      --Image_Graph_Layout
         |
         --Image_Graph_Legend

Displays a legend for a plotarea.


Methods


Inherited Variables

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 45]
Displays a legend for a plotarea.

A legend can be displayed in two ways:

  1. As an overlayed box within the plotarea.
  2. Layout'ed on the canvas somewhere next to the plotarea.




[ Top ]


Class Methods


constructor Image_Graph_Legend [line 65]

Image_Graph_Legend &Image_Graph_Legend( )

Image_Graph_Legend [Constructor]



[ Top ]

method setAlignment [line 152]

void setAlignment( int $alignment)

Set the alignment of the legend



Parameters:

int   $alignment   The alignment

[ Top ]

method setPlotarea [line 192]

void setPlotarea( Image_Graph_Plotarea &$plotarea)

Sets Plotarea



Parameters:

Image_Graph_Plotarea   $plotarea   The plotarea

[ Top ]


Documentation generated on Wed, 15 Sep 2004 10:30:33 +0200 by phpDocumentor 1.2.3