libyui
|
#include <YGraph.h>
Protected Member Functions | |
YGraph (YWidget *parent, const std::string &filename, const std::string &layoutAlgorithm) | |
YGraph (YWidget *parent, void *graph) | |
virtual void | renderGraph (const std::string &filename, const std::string &layoutAlgorithm)=0 |
virtual void | renderGraph (void *graph)=0 |
![]() | |
YWidget (YWidget *parent) | |
YWidgetChildrenManager * | childrenManager () const |
void | setChildrenManager (YWidgetChildrenManager *manager) |
void | setBeingDestroyed () |
void | dumpWidget (YWidget *w, int indentationLevel) |
A graph with nodes and edges, rendered with Graphviz.
|
protected |
Constructor.
Loads a graph in DOT format from filename and uses the layout algorithm layoutAlgorithm to layout and then render the graph. The layout algorithm can be any string accepted by the function gvLayout from graphviz, e.g. "dot" or "neato".
Constructor.
Renders the graph. The graph must already contain layout information.
|
virtual |
Destructor.
|
virtual |
Return name of activated node. Activation can happen due to e.g. single right mouse click (context menu) or double left mouse click.
string YGraph::filename | ( | ) | const |
Return the filename that describes the graph.
|
virtual |
string YGraph::layoutAlgorithm | ( | ) | const |
Return the layout-algorithm used for the graph.
|
virtual |
|
protectedpure virtual |
Render the graph from the filename. Derived classes are required to implement this.
Render the graph. Derived classes are required to implement this.
Set the filename that describes the graph and render the graph. Derived classes can reimplent this, but they should call this base class method in the new implementation. Most derived classes only need to implement renderGraph().
Render the graph. Derived classes can reimplent this, but they should call this base class method in the new implementation. Most derived classes only need to implement renderGraph().
Set the layout-algorithm used for the graph. Derived classes can reimplent this, but they should call this base class method in the new implementation.
|
virtual |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.