SvgGrapherSvgGrapher.
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)
static SvgGrapher
$instance
= false (line 97)
Instance (singleton) of the class
array
$boxesPositions
= array(boxesPositions
Boxes positions array, acceptables values are:
integer
$decimal
= DECIMAL_NUMBER (line 249)
Number of decimals.
array
$display
= array(display
You can't access directly this variable using
integer
$dpiResolution
= DEFAULT_DPI_RESOLUTION (line 255)
Screen resolution.
float
$factorY
= 0 (line 319)
Coefficient pixel/data to the ordinate axe.
int
$gridLineX
= 0 (line 357)
Number of lines to the abscisses grid
integer
$gridLineXDelta
= GRID_LINES_X_DELTA (line 275)
Number of pixel between each line of the abscisse grid.
int
$gridLineY
= GRID_LINES_Y (line 386)
Number of line to the grid of the Y axe
integer
$gridLineYDelta
= GRID_LINES_Y_DELTA (line 281)
Number of pixel between each line of the ordinate grid.
string
$labelX
= DEFAULT_LABEL_X (line 325)
Label X value.
string
$labelY
= DEFAULT_LABEL_Y (line 331)
Y label value.
int
$labelYRotation
= -90 (line 368)
Y label rotation
array
$limitsLines
= array(limitsLines
integer
$max
= 0 (line 313)
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.
integer
$min
= 0 (line 303)
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.
integer
$minorStepY
= 8 (line 374)
Y minor step
mixed
$minorStepYDelta
= MINOR_STEP_Y_DELTA (line 345)
minorStepYDelta
float
$nicerLookXOffset
= NICER_LOOK_X_OFFSET (line 262)
Space between graph and abscisse tags.
default: 5% of the width, limit to 15.
float
$nicerLookYOffset
= NICER_LOOK_Y_OFFSET (line 269)
Space between graph and ordinate tags.
default: 5% of the width, limit to 15.
float
$plotOffsetX
= PLOT_OFFSET_X (line 287)
Padding of the first point from the abscisse.
float
$plotOffsetY
= PLOT_OFFSET_Y (line 293)
Padding of the first point from the ordinate.
array
$range
= array('min' => 0, 'max' => 0, 'delta' => 0) (line 430)
Limits of the data. (calculed with the internal findrange plugin)
array
$rendererCallBacks
= array(rendererCallBacks
Call back functions used in SvgDocumentRenderer to do operations on tags.
integer
$resolution
= RESOLUTION_ENDING_ONE_ZERO (line 243)
Round level.
DefsElement
$svgDefs
= NULL (line 130)
Defs elements of the svg document
SvgElement
$svgDocument
= NULL (line 112)
Main svg document
mixed
$svgDom
(line 105)
svgDom
FragmentElement
$svgEcma
= NULL (line 136)
CDATA section of the svg document
array
$tagsY
= array() (line 237)
tagsY
mixed
$tagXGapFrequency
= 1 (line 362)
Frequency of the abscisses tags
integer
$tagXRotation
= -30 (line 351)
Rotation angle (degree) for the abscisse tags
integer
$tagYRotation
= 0 (line 380)
Rotation of the Y tags
string
$title
= DEFAULT_TITLE (line 337)
Graph title.
bool
$_needUpdate
= true (line 440)
_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