Image_Graph_Base::setSpacer()

Image_Graph_Base::setSpacer() -- Set spacer

Synopsis

require_once '/Graph/Elements.php';

void Image_Graph_Base::setSpacer (array $spacer)

Description

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.

Parameter

array $spacer

(array of 4 ints) array with keys "top, bottom, left, right"

Throws

throws no exceptions thrown

Note

This function can not be called statically.