Otawa  0.10
display.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * otawa::display concepts
4  *
5  * This file is part of OTAWA
6  * Copyright (c) 2007, IRIT UPS.
7  *
8  * OTAWA is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * OTAWA is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with OTAWA; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
24 
25 namespace otawa { namespace display {
26 
27 
33 template <class G>
34 class Decorator {
35 public:
36 
44  static void decorate(
45  const G& graph,
46  Output& caption,
47  TextStyle& text,
48  FillStyle& fill);
49 
59  static void decorate(
60  const G& graph,
61  const typename G::Vertex vertex,
62  Output& content,
63  ShapeStyle& style);
64 
71  static void decorate(
72  const G& graph,
73  const typename G::Edge edge,
74  Output& label,
75  TextStyle& text,
76  LineStyle& line);
77 };
78 
79 } } // otawa::display
dtd::Element edge(dtd::make("edge", _EDGE).attr(source).attr(target).attr(called))
A decorator is a concept that provides static functions used to display a graph.
Definition: display.h:34
The style of a filled area.
Definition: display.h:83
Description of the style of text.
Definition: display.h:48
Shape style.
Definition: display.h:98
static void decorate(const G &graph, Output &caption, TextStyle &text, FillStyle &fill)
This method is called to decorate the graph.
word_t fill(int size, bool init)
Definition: display.h:65