Base class for data-storage in common objects
Some attributes and methods to manipulate them are used in almost any object for the graph. This class provides the base-functionality for the classes derived from it.
Located in /Graph/Elements.php (line 75)
Class | Description |
---|---|
Image_Graph_Title | Class for storing a title |
Image_Graph_Axis | Class for storing axis settings |
Image_Graph_Grid | Class for storing grid-element settings |
Set color
For some objects if the color-value is "null" instead of an array default values will be taken. Note that the feature of using "null" might possibly not be available for some objects.
Set options for fonts
All information not given in this array (e.g. font_path) will be taken from the default font-options set in the Image_Graph-object. These options are directly given to the class Image_Text which handles text-output. For a full list of necessary/available font-options please refer to the Image_Text-docs and/or have a look at the examples shipped with the Image_Graph-package. !! Note that the option "font_type" defaults to "ttf" (TrueType-fonts) at the moment. As soon as PHP-internal (bitmap) fonts are also supported by Image_Text this will default to those internal fonts instead. !!
Set spacer
The spacer-array stores values how many pixels of space should be added between above, below and besides an object. Note that possibly not all values are used for all objects. This depends upon the type of object and their position inside the graph. If some elements of the array are missing the current values are left in place. This way you can e.g. just modify the top-spacer for an object or set all bounds in one go.
Set text
Multiple lines are possible by using "\n" as separator.
Documentation generated on Sat, 21 Feb 2004 23:28:04 +0100 by phpDocumentor 1.3.0RC2