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.
Source for this file: /Graph/src/element/text.php
ezcBaseOptions | --ezcGraphChartElement | --ezcGraphChartElementText
Version: | //autogentag// |
float | read/write |
$maxHeight
Maximum percent of bounding used to display the text. |
From ezcBaseOptions | |
---|---|
protected |
ezcBaseOptions::$properties
|
public ezcGraphBoundings |
render(
$renderer
, $boundings
)
Render the text |
public void |
__set(
$propertyName
, $propertyValue
)
__set |
From ezcGraphChartElement | |
---|---|
protected ezcGraphBoundings |
ezcGraphChartElement::getTitleSize()
Returns calculated boundings based on available percentual space of given bounding box specified in the elements options and direction of the box. |
public abstract ezcGraphBoundings |
ezcGraphChartElement::render()
Renders this chart element |
public void |
ezcGraphChartElement::setFromPalette()
Set colors and border fro this element |
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. |
Render the text
Name | Type | Description |
---|---|---|
$renderer |
ezcGraphRenderer | Renderer |
$boundings |
ezcGraphBoundings | Boundings for the axis |
Method | Description |
---|---|
ezcGraphChartElement::render() |
Renders this chart element |
__set
Name | Type | Description |
---|---|---|
$propertyName |
mixed | |
$propertyValue |
mixed |
Type | Description |
---|---|
ezcBasePropertyNotFoundException |
If a the value for the property options is not an instance of |
ezcBaseValueException |
If a submitted parameter was out of range or type. |