Graph: ezcGraphChartElementBackground
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcGraphChartElementBackground
|
Chart element representing the background. In addition to the standard background and border for chart elements it can draw an image on the chart background, and optionally repeat it. The position will be used for the repetition offset. [
source]
1. $chart->background->image = 'background.png';
2.
3. // Image will be repeated horizontal at the top of the background
4. $chart->background->repeat = ezcGraph::HORIZONTAL;
5. $chart->background->postion = ezcGraph::TOP;
6.
7. // Image will be placed once in the center
8. $chart->background->repeat = ezcGraph::NO_REPEAT; // default;
9. $chart->background->position = ezcGraph::CENTER | ezcGraph::MIDDLE;
10.
11. // Image will be repeated all over
12. $chart->background->repeat = ezcGraph::HORIZONTAL | ezcGraph::VERTICAL;
12. // The position is not relevant here.
Parents
ezcBaseOptions
|
--ezcGraphChartElement
|
--ezcGraphChartElementBackground
Properties
|
string |
read/write
|
$image
Filename of the file to use for background |
|
int |
read/write
|
$repeat
Defines how the background image gets repeated |
Inherited Member Variables
From
ezcBaseOptions:
Method Summary
|
public ezcGraphBoundings |
render(
$renderer, $boundings )
Render the background |
|
public void |
setFromPalette(
$palette )
Set colors and border for this element |
Inherited Methods
From
ezcGraphChartElement :
From
ezcBaseOptions :
Methods
render
Render the background
Parameters
| Name |
Type |
Description |
$renderer |
ezcGraphRenderer |
Renderer |
$boundings |
ezcGraphBoundings |
Boundings |
Redefinition of
setFromPalette
Set colors and border for this element
Method is overwritten because we do not ant to apply the global padding and margin here.
Parameters
Redefinition of
Last updated: Mon, 17 Dec 2007