A graphical object is a part of a graphic. It can display itself on a picture.
Each object will have to implement those functions.
Display the object on the picture using the given driver. It may use $o->{'zone'} and $o->{'source'} to get the data and display itself in the good zone.
init(...)This function is called with the trailing arguments given to the constructor.
The constructor.
get_z_level()
set_z_level($z)Those two functions are used to manage the order in which the orders are displayed. An object with a low Z level is drawn first.
set_source($source)
get_source()Set/get the datasource associated to this object.
set_zone($zone)Set the zone in which the object will be displayed.
set_special_scale($scale)Use a special scale to draw this object.
get_scale()Return the associated scale. If it exists, it uses the special scale, otherwise returns the default scale associated to the zone.
set_background_color($color)Use this color as background color.
set_foreground_color($color)Use this color as foreground color.