![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
Simple viewer for Graphvizable.
More...
Collaboration diagram for aud.util.DotViewer:Public Member Functions | |
| DotViewer (JFrame parent) | |
| create new instance More... | |
| JFrame | parent () |
| get parent widget More... | |
| JLabel | statusbar () |
| get status bar More... | |
| void | display (String code) |
| display dot code More... | |
| void | display (Graphvizable object) |
display object More... | |
| void | setExitOnClose () |
| exit application if viewer is closed More... | |
Static Public Member Functions | |
| static void | help () |
| print help (mouse/key bindings) to stdout More... | |
| static DotViewer | displayWindow (Graphvizable object, String caption) |
create new DotViewer (toplevel window) and display object More... | |
| static DotViewer | displayWindow (String code, String caption) |
create new DotViewer (toplevel window) and display code More... | |
| static void | main (String[] args) |
| visualize given dot files (file names as command line arguments) More... | |
Protected Member Functions | |
| JComponent | createComponents () |
Protected Attributes | |
| File | dotfile |
| JFrame | frame |
| JSVGCanvas | svgCanvas |
| Graphviz | graphviz |
| JLabel | label |
Simple viewer for Graphvizable.
Usage:
Ctrl+O = zoom out
DotViewer can be used with SingleStepper to visualize progress of an algorithm. GraphDemo shows an example.
Definition at line 47 of file DotViewer.java.
| aud.util.DotViewer.DotViewer | ( | JFrame | parent | ) |
create new instance
Definition at line 56 of file DotViewer.java.
References aud.util.DotViewer.createComponents(), aud.util.DotViewer.dotfile, aud.util.DotViewer.frame, aud.util.DotViewer.graphviz, aud.util.DotViewer.label, aud.util.DotViewer.parent(), and aud.util.DotViewer.svgCanvas.
Here is the call graph for this function:
|
protected |
Definition at line 80 of file DotViewer.java.
References aud.util.DotViewer.label, and aud.util.DotViewer.svgCanvas.
Referenced by aud.util.DotViewer.DotViewer().
Here is the caller graph for this function:| void aud.util.DotViewer.display | ( | Graphvizable | object | ) |
display object
Definition at line 134 of file DotViewer.java.
References aud.util.DotViewer.display().
Here is the call graph for this function:| void aud.util.DotViewer.display | ( | String | code | ) |
display dot code
Definition at line 107 of file DotViewer.java.
References aud.util.DotViewer.dotfile, aud.util.DotViewer.graphviz, aud.util.Graphviz.renderDotFileToFile(), aud.util.DotViewer.svgCanvas, and aud.util.Sys.writeToFile().
Referenced by aud.util.DotViewer.display(), aud.util.DotViewer.displayWindow(), aud.example.A234TreeExample.onHalt(), aud.example.AVLTreeExample.onHalt(), aud.example.BinarySearchTreeExample.onHalt(), aud.example.BinaryTreeTraversal.onHalt(), aud.example.BTreeExample.onHalt(), aud.example.expr.ExpressionTreeTraversal.onHalt(), aud.example.graph.MaxFlowExample.onHalt(), aud.example.graph.TraversalExample.onHalt(), aud.example.RedBlackTreeExample.onHalt(), aud.util.GraphDemo.onHalt(), and aud.util.SingleStepperDemo.onHalt().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
create new DotViewer (toplevel window) and display object
Definition at line 139 of file DotViewer.java.
References aud.util.DotViewer.displayWindow().
Referenced by aud.util.Graphviz.display(), aud.util.DotViewer.displayWindow(), aud.example.graph.GraphParser.main(), and aud.util.DotViewer.main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
create new DotViewer (toplevel window) and display code
Definition at line 143 of file DotViewer.java.
References aud.util.DotViewer.display().
Here is the call graph for this function:
|
static |
print help (mouse/key bindings) to stdout
Definition at line 91 of file DotViewer.java.
Referenced by aud.util.DotViewer.main().
Here is the caller graph for this function:
|
static |
visualize given dot files (file names as command line arguments)
Definition at line 163 of file DotViewer.java.
References aud.util.DotViewer.displayWindow(), aud.util.DotViewer.help(), aud.util.Sys.readFile(), and aud.util.DotViewer.setExitOnClose().
Here is the call graph for this function:| JFrame aud.util.DotViewer.parent | ( | ) |
get parent widget
Definition at line 76 of file DotViewer.java.
References aud.util.DotViewer.frame.
Referenced by aud.util.DotViewer.DotViewer(), and aud.util.DotViewer.setExitOnClose().
Here is the caller graph for this function:| void aud.util.DotViewer.setExitOnClose | ( | ) |
exit application if viewer is closed
Definition at line 154 of file DotViewer.java.
References aud.util.DotViewer.parent().
Referenced by aud.example.graph.GraphParser.main(), and aud.util.DotViewer.main().
Here is the call graph for this function:
Here is the caller graph for this function:| JLabel aud.util.DotViewer.statusbar | ( | ) |
|
protected |
Definition at line 49 of file DotViewer.java.
Referenced by aud.util.DotViewer.display(), and aud.util.DotViewer.DotViewer().
|
protected |
Definition at line 50 of file DotViewer.java.
Referenced by aud.util.DotViewer.DotViewer(), and aud.util.DotViewer.parent().
|
protected |
Definition at line 52 of file DotViewer.java.
Referenced by aud.util.DotViewer.display(), and aud.util.DotViewer.DotViewer().
|
protected |
Definition at line 53 of file DotViewer.java.
Referenced by aud.util.DotViewer.createComponents(), aud.util.DotViewer.DotViewer(), and aud.util.DotViewer.statusbar().
|
protected |
Definition at line 51 of file DotViewer.java.
Referenced by aud.util.DotViewer.createComponents(), aud.util.DotViewer.display(), and aud.util.DotViewer.DotViewer().