Super class of all graphic node, edge, and sprite elements.
Each graphic element references a style, a graphic graph and has a label.
The element also defines the basic behaviour to reload the style when needed, defines abstract methods to set and get the position and bounds in spaces of the element, and to do appropriate actions when specific predefined attributes change (most of them starting with the prefix "ui.").
The graphic element has the ability to store attributes like any other graph element, however the attributes stored by the graphic element are restricted. There is a filter on the attribute adding methods that let pass only :
- All attributes starting with "ui.".
- The "x", "y", "z", "xy" and "xyz" attributes.
- The "stylesheet" attribute.
- The "label" attribute.
All other attributes are filtered and not stored. The result is that if the graphic graph is used as an input (a source of graph events) some attributes will not pass through the filter.