Otawa  0.10
otawa::display::GenDrawer< G, D > Class Template Reference

A simple engine to draw graphs. More...

#include <otawa/display/GenDrawer.h>

Inheritance diagram for otawa::display::GenDrawer< G, D >:
otawa::display::AbstractDrawer

Classes

class  Edge
 
class  Vertex
 

Public Member Functions

 GenDrawer (const G &graph)
 Build the drawer. More...
 
void draw (void)
 Launch the draw of the graph. More...
 

Public Attributes

kind_t kind
 
String path
 
FillStyle page_fill
 
TextStyle page_text
 
ShapeStyle default_vertex
 
LineStyle default_edge_line
 
TextStyle default_edge_text
 

Private Member Functions

virtual void configure (Output &caption, TextStyle &text, FillStyle &fill)
 This method may be overriden to provide a customized graph ledend. More...
 

Private Attributes

const G & _graph
 

Detailed Description

template<class G, class D>
class otawa::display::GenDrawer< G, D >

A simple engine to draw graphs.

Parameters
GType of the graph to use (must implement the otawa::concept::DiGraphWithNodeMap concept).
DType describing the decorator of the nodes and edges of the graph (must implement the otawa::display::Decorator concept).

Constructor & Destructor Documentation

template<class G , class D >
otawa::display::GenDrawer< G, D >::GenDrawer ( const G &  graph)
inline

Build the drawer.

Parameters
graphGraph to work on.

References otawa::display::GenDrawer< G, D >::_graph, and otawa::cfgio::edge().

Member Function Documentation

template<class G, class D>
virtual void otawa::display::GenDrawer< G, D >::configure ( Output caption,
TextStyle text,
FillStyle fill 
)
inlineprivatevirtual

This method may be overriden to provide a customized graph ledend.

Parameters
outGraph caption.
textGraph caption text style to configure.
fillGraph background fill style to configure.

Reimplemented from otawa::display::AbstractDrawer.

References otawa::display::GenDrawer< G, D >::_graph.

Member Data Documentation

template<class G, class D>
const G& otawa::display::GenDrawer< G, D >::_graph
private
LineStyle otawa::display::AbstractDrawer::default_edge_line
inherited
TextStyle otawa::display::AbstractDrawer::default_edge_text
inherited
ShapeStyle otawa::display::AbstractDrawer::default_vertex
inherited
kind_t otawa::display::AbstractDrawer::kind
inherited
FillStyle otawa::display::AbstractDrawer::page_fill
inherited
TextStyle otawa::display::AbstractDrawer::page_text
inherited
String otawa::display::AbstractDrawer::path
inherited

The documentation for this class was generated from the following files: