Path

ez components / documentation / api reference / 2007.2.1 / graph


eZ Components 2007.2.1

Graph: ezcGraphDriverOptions

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcGraphDriverOptions

Class containing the basic driver options. [source]
 1.    require_once 'tutorial_autoload.php';
 2.  
 3.    $graph new ezcGraphPieChart();
 4.    $graph->palette new ezcGraphPaletteEzBlue();
 5.    $graph->title 'Access statistics';
 6.  
 7.    $graph->data['Access statistics'new ezcGraphArrayDataSetarray(
 8.        'Mozilla' => 19113,
 9.        'Explorer' => 10917,
10.        'Opera' => 1464,
11.        'Safari' => 652,
12.        'Konqueror' => 474,
13.    ) );
14.  
15.    $graph->driver->options->autoShortenString false;
16.  
17.    $graph->render400150'tutorial_chart_title.svg' );

Parents

ezcBaseOptions
   |
   --ezcGraphDriverOptions

Descendents

Child Class Description
ezcGraphSvgDriverOptions Class containing the extended options for the SVG driver.
ezcGraphGdDriverOptions Class containing the extended driver options for the gd driver.
ezcGraphFlashDriverOptions Class containing the extended configuration options for the flash driver.

Properties

bool read/write  $autoShortenString
Automatically shorten string if it does not fit into a box
string read/write  $autoShortenStringPostFix
String to append to shortened strings, if there is enough space
int read/write  $font
Font used in the graph.
int read/write  $height
Height of the chart.
float read/write  $lineSpacing
Percent of font size used for line spacing
float read/write  $shadeCircularArc
Percent to darken circular arcs at the sides
int read/write  $width
Width of the chart.

Inherited Member Variables

From ezcBaseOptions:
protected  ezcBaseOptions::$properties

Method Summary

public void __set( $propertyName, $propertyValue )
Set an option value

Inherited Methods

From ezcBaseOptions :
public ezcBaseOptions ezcBaseOptions::__construct()
Construct a new options object.
public void ezcBaseOptions::merge()
Merge an array into the actual options object.
public bool ezcBaseOptions::offsetExists()
Returns if an option exists.
public mixed ezcBaseOptions::offsetGet()
Returns an option value.
public void ezcBaseOptions::offsetSet()
Set an option.
public void ezcBaseOptions::offsetUnset()
Unset an option.

Methods

__set

void __set( string $propertyName, mixed $propertyValue )
Set an option value

Parameters

Name Type Description
$propertyName string  
$propertyValue mixed  

Throws

ClassDescription
ezcBasePropertyNotFoundException If a property is not defined in this class

Redefined in descendants as

Method Description
ezcGraphGdDriverOptions::__set() Set an option value

Last updated: Thu, 31 Jan 2008