Graph: ezcGraphFontOptions
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcGraphFontOptions
|
Class containing the options for font configuration. [
source]
Global font settings will only affect the font settings of chart elements until they were modified once. Form then on the font configuration of one chart element has been copied and can only be configured independently.
1. $graph = new ezcGraphPieChart();
2. $graph->palette = new ezcGraphPaletteEzBlue();
3. $graph->title = 'Access statistics';
4.
5. $graph->options->font->name = 'serif';
6. $graph->options->font->maxFontSize = 12;
7.
8. $graph->title->background = '#EEEEEC';
9. $graph->title->font->name = 'sans-serif';
10.
11. $graph->options->font->maxFontSize = 8;
12.
13. $graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
14. 'Mozilla' => 19113,
15. 'Explorer' => 10917,
16. 'Opera' => 1464,
17. 'Safari' => 652,
18. 'Konqueror' => 474,
19. ) );
20.
21. $graph->render( 400, 150, 'tutorial_chart_title.svg' );
Parents
ezcBaseOptions
|
--ezcGraphFontOptions
Properties
Member Variables
|
protected bool |
$pathChecked
= false
Indicates if path already has been checked for correct font |
Inherited Member Variables
From
ezcBaseOptions:
Method Summary
|
public void |
__set(
$propertyName, $propertyValue )
Set an option value |
Inherited Methods
From
ezcBaseOptions :
Methods
__set
void __set(
string
$propertyName, mixed
$propertyValue )
Set an option value
Parameters
| Name |
Type |
Description |
$propertyName |
string |
|
$propertyValue |
mixed |
|
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If a property is not defined in this class |
Last updated: Wed, 18 Jun 2008