Chart element representing the background.
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.
Additionally to common background and border for chart elements it can draw an image on the chart background, and optionally repeat it. The position will be used to define the start of the repetition.
The repetition effects are modelled similar to the background settings in CSS. The example shows some common settings:
Source for this file: /Graph/src/element/background.php
ezcBaseOptions | --ezcGraphChartElement | --ezcGraphChartElementBackground
Version: | //autogentag// |
string | read/write |
$image
Filename of the file to use for background |
int | read/write |
$repeat
Defines how the background image gets repeated |
From ezcBaseOptions | |
---|---|
protected |
ezcBaseOptions::$properties
|
public ezcGraphBoundings |
render(
$renderer
, $boundings
)
Render the background |
public void |
setFromPalette(
$palette
)
Set colors and border for this element |
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 background
Name | Type | Description |
---|---|---|
$renderer |
ezcGraphRenderer | Renderer |
$boundings |
ezcGraphBoundings | Boundings |
Method | Description |
---|---|
ezcGraphChartElement::render() |
Renders this chart element |
Set colors and border for this element
Method is overwritten because we do not ant to apply the global padding and margin here.
Name | Type | Description |
---|---|---|
$palette |
ezcGraphPalette | Palette |
Method | Description |
---|---|
ezcGraphChartElement::setFromPalette() |
Set colors and border fro this element |