Graph: ezcGraphChartElementLegend
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcGraphChartElementLegend
|
Class to represent a legend as a chart element [
source]
Parents
ezcBaseOptions
|
--ezcGraphChartElement
|
--ezcGraphChartElementLegend
Properties
|
float |
read/write
|
$landscapeSize
Size of a landscape style legend in percent of the size of the complete chart. |
|
float |
read/write
|
$minimumSymbolSize
Scale symbol size up to to percent of complete legends size for very big legends. |
|
float |
read/write
|
$portraitSize
Size of a portrait style legend in percent of the size of the complete chart. |
|
int |
read/write
|
$spacing
Space between labels elements in pixel. |
|
int |
read/write
|
$symbolSize
Standard size of symbols and text in legends. |
Member Variables
|
protected array |
$labels
Contains data which should be shown in the legend |
Inherited Member Variables
From
ezcBaseOptions:
Method Summary
|
protected ezcGraphBoundings |
calculateBoundings(
$boundings )
Calculated boundings needed for the legend. |
|
public void |
generateFromDataSet(
$dataset )
Generate legend from single dataset with on entry per data element |
|
public void |
generateFromDataSets(
$datasets )
Generate legend from several datasets with on entry per dataset |
|
public ezcGraphBoundings |
render(
$renderer, $boundings )
Render a legend |
|
public void |
__get(
$propertyName )
|
Inherited Methods
From
ezcGraphChartElement :
From
ezcBaseOptions :
Methods
calculateBoundings
ezcGraphBoundings calculateBoundings(
$boundings )
Calculated boundings needed for the legend.
Uses the position and the configured horizontal or vertical size of a legend to calculate the boundings for the legend.
Parameters
| Name |
Type |
Description |
$boundings |
ezcGraphBoundings |
Avalable boundings |
generateFromDataSet
void generateFromDataSet(
$dataset )
Generate legend from single dataset with on entry per data element
Parameters
| Name |
Type |
Description |
$dataset |
ezcGraphDataSet |
|
generateFromDataSets
Generate legend from several datasets with on entry per dataset
Parameters
| Name |
Type |
Description |
$datasets |
array |
|
render
Render a legend
Parameters
| Name |
Type |
Description |
$renderer |
ezcGraphRenderer |
Renderer |
$boundings |
ezcGraphBoundings |
Boundings for the axis |
Redefinition of
__get
void __get(
$propertyName )
Parameters
| Name |
Type |
Description |
$propertyName |
|
|
Redefinition of
Last updated: Thu, 01 Nov 2007