SvgGrapher.
Build a svg document.
The most of plugin functionality are plugin defined. The plugin types are :
All plugins are call using the PluginManager class, the plugins can access to the SvgGrapher class using the SvgGrapher::singleton() method.
The plugins paths are define in the PluginManager class file.
You can redefine most of constant using by the library, they are listed in the SvgGrapher.constants.php, you must redefined them before include SvgGrapher.php
Located in /SvgGrapher.php (line 89)
Instance (singleton) of the class
boxesPositions
Boxes positions array, acceptables values are:
Number of decimals.
display
You can't access directly this variable using
Screen resolution.
Coefficient pixel/data to the ordinate axe.
Number of lines to the abscisses grid
Number of pixel between each line of the abscisse grid.
Number of line to the grid of the Y axe
Number of pixel between each line of the ordinate grid.
Label X value.
Y label value.
Y label rotation
limitsLines
Max value to calculate the scale.
This value is not calculated, you must fixe it if the max value is not the "real" max value passed in the curve data.
Min value to calculate the scale.
This value is not calculated, you must fixe it if the min value is not the "real" min value passed in the curve data.
Y minor step
minorStepYDelta
Space between graph and abscisse tags.
default: 5% of the width, limit to 15.
Space between graph and ordinate tags.
default: 5% of the width, limit to 15.
Padding of the first point from the abscisse.
Padding of the first point from the ordinate.
Limits of the data. (calculed with the internal findrange plugin)
rendererCallBacks
Call back functions used in SvgDocumentRenderer to do operations on tags.
Round level.
Defs elements of the svg document
Main svg document
svgDom
CDATA section of the svg document
tagsY
Frequency of the abscisses tags
Rotation angle (degree) for the abscisse tags
Rotation of the Y tags
Graph title.
_needUpdate
true if boxes position and scale need to be recalulated
Exception handler.
Get the current instance (singleton) of the class, or make a new instance.
Constructor.
Add a curve to the graph.
Draw an horizontal line.
Draw the svg or save it in file.
Draw a vertical line (run checkChange before draw line).
Write the svg in plain-text (to debug)
setDisplay
set the display property
$value can be:
_calculateBoxProperties
boxes positions:
Import the core functions founded in internal directory.
Documentation generated on Tue, 23 Oct 2007 11:32:14 +0200 by phpDocumentor 1.4.0