A decorator is a concept that provides static functions used to display a graph.
More...
#include </home/casse/otawa/otawa/src/odisplay/display.h>
|
static void | decorate (const G &graph, Output &caption, TextStyle &text, FillStyle &fill) |
| This method is called to decorate the graph. More...
|
|
static void | decorate (const G &graph, const typename G::Vertex vertex, Output &content, ShapeStyle &style) |
| This method is called for each vertex of the graph to get its decoration. More...
|
|
static void | decorate (const G &graph, const typename G::Edge edge, Output &label, TextStyle &text, LineStyle &line) |
| This method is called for each edge. More...
|
|
template<class G>
class otawa::display::Decorator< G >
A decorator is a concept that provides static functions used to display a graph.
- Parameters
-
This method is called to decorate the graph.
- Parameters
-
graph | Current graph. |
caption | Output text here to set the graph caption. |
fill | Fill style of the back of the graph. |
text | Text style of the graph caption. |
This method is called for each vertex of the graph to get its decoration.
- Parameters
-
vertex | Current vertex. |
content | Text content of the node (output it here). To have a title and a body, output the title, "---\n", then the body. |
shape | Shape style of the vertex. |
This method is called for each edge.
- Parameters
-
label | Label of the edge (output text here). |
text | Text style of the edge label. |
line | Line style of the edge. |
The documentation for this class was generated from the following file: