![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
example: insert entries and maintain balance More...
Classes | |
class | MyAVLTree |
Public Member Functions | |
AVLTreeExample () | |
create application instance More... | |
MyAVLTree | getTree () |
![]() | |
SingleStepper (JFrame parent) | |
create new instance More... | |
SingleStepper (String caption) | |
create new instance More... | |
JFrame | parent () |
get parent widget More... | |
void | halt (String text, int timeout) |
display text and wait for user or timeout More... | |
void | setTimeout (int timeout) |
Set global timeout. More... | |
SingleStepper | whereAmI () |
print location of calling code More... | |
SingleStepper | showSource () |
jmp to caller's location in editor (emacs only) More... | |
void | halt (String text) |
display text and wait for user (or global timeout) More... | |
void | halt () |
wait for user More... | |
Static Public Member Functions | |
static void | main (String[] args) |
start interactive example More... | |
static void | main (String[] args) |
Protected Member Functions | |
void | onHalt () |
![]() | |
JComponent | createComponents () |
void | onNext () |
call on button pressed More... | |
void | println (String text) |
print to both, text area and stdout More... | |
void | onHalt () |
Protected Attributes | |
MyAVLTree | tree_ = null |
DotViewer | viewer_ |
![]() | |
JFrame | frame |
JTextArea | history |
JButton | next |
Object | monitor = new Object() |
int | timeout = 0 |
example: insert entries and maintain balance
Definition at line 11 of file AVLTreeExample.java.
create application instance
Definition at line 29 of file AVLTreeExample.java.
References aud.example.AVLTreeExample.tree_.
Referenced by aud.example.AVLTreeExample.main().
MyAVLTree aud.example.AVLTreeExample.getTree | ( | ) |
Definition at line 34 of file AVLTreeExample.java.
References aud.example.AVLTreeExample.tree_.
Referenced by aud.example.AVLTreeExample.main().
|
static |
start interactive example
Reimplemented from aud.util.SingleStepper.
Definition at line 42 of file AVLTreeExample.java.
References aud.example.AVLTreeExample.AVLTreeExample(), aud.example.AVLTreeExample.getTree(), aud.util.SingleStepper.halt(), and aud.util.SingleStepper.setTimeout().
|
protected |
Reimplemented from aud.util.SingleStepper.
Definition at line 36 of file AVLTreeExample.java.
References aud.util.DotViewer.display(), aud.example.AVLTreeExample.tree_, and aud.example.AVLTreeExample.viewer_.
|
protected |
Definition at line 24 of file AVLTreeExample.java.
Referenced by aud.example.AVLTreeExample.AVLTreeExample(), aud.example.AVLTreeExample.getTree(), and aud.example.AVLTreeExample.onHalt().
|
protected |
Definition at line 25 of file AVLTreeExample.java.
Referenced by aud.example.AVLTreeExample.onHalt().