If it is allow to shortened the string, this method tries to extract as many chars as possible to display a decent amount of characters.

Methods

deModifyCoordinate

float deModifyCoordinate(
float
$pointValue )

Demodifies a coordinate value, as flash usally uses twips instead of pixels for a higher solution, as it only accepts integer values.

Parameters

Name

Type

Description

$pointValue

float

drawAllTexts

void drawAllTexts(
)

Draw all collected texts

The texts are collected and their maximum possible font size is calculated. This function finally draws the texts on the image, this delayed drawing has two reasons:

1) This way the text strings are always on top of the image, what results in better readable texts 2) The maximum possible font size can be calculated for a set of texts with the same font configuration. Strings belonging to one chart element normally have the same font configuration, so that all texts belonging to one element will have the same font size.