[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/library/ezc/Graph/src/element/ -> text.php (summary)

File containing the ezcGraphChartElementText class

Copyright: Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
License: http://ez.no/licenses/new_bsd New BSD License
Version: 1.5
File Size: 150 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ezcGraphChartElementText:: (3 methods):
  __construct()
  __set()
  render()


Class: ezcGraphChartElementText  - X-Ref

Chart element to display texts in a chart

Chart elements can be understood as widgets or layout container inside the
chart. The actual transformation to images happens inside the renderers.
They represent all elements inside the chart and contain mostly general
formatting options, while the renderer itself might define additional
formatting options for some chart elments. You can find more about the
general formatting options for chart elements in the base class
ezcGraphChartElement.

The text element can only be placed at the top or the bottom of the chart.
Beside the common options it has only one additional option defining the
maximum height used for the text box. The actaully required height is
calculated based on the assigned text size.

<code>
$chart = new ezcGraphPieChart();
$chart->data['example'] = new ezcGraphArrayDataSet( array(
'Foo' => 23,
'Bar' => 42,
) );

$chart->title = 'Some pie chart';

// Use at maximum 5% of the chart height for the title.
$chart->title->maxHeight = .05;

$graph->render( 400, 250, 'title.svg' );
</code>

__construct( array $options = array()   X-Ref
Constructor

param: array $options Default option array
return: void

__set( $propertyName, $propertyValue )   X-Ref
__set

param: mixed $propertyName
param: mixed $propertyValue
return: void

render( ezcGraphRenderer $renderer, ezcGraphBoundings $boundings )   X-Ref
Render the text

param: ezcGraphRenderer $renderer Renderer
param: ezcGraphBoundings $boundings Boundings for the axis
return: ezcGraphBoundings Remaining boundings



Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7