![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
example: insert, remove, and restructure entries More...
Public Member Functions | |
BinarySearchTreeExample (BinarySearchTree< String, String > tree) | |
create application instance More... | |
![]() | |
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 | |
BinarySearchTree< String, String > | tree_ = null |
DotViewer | viewer_ |
BinarySearchTree< String, String >.Decorator | decorator_ |
![]() | |
JFrame | frame |
JTextArea | history |
JButton | next |
Object | monitor = new Object() |
int | timeout = 0 |
example: insert, remove, and restructure entries
Definition at line 10 of file BinarySearchTreeExample.java.
aud.example.BinarySearchTreeExample.BinarySearchTreeExample | ( | BinarySearchTree< String, String > | tree | ) |
create application instance
Definition at line 19 of file BinarySearchTreeExample.java.
References aud.example.BinarySearchTreeExample.decorator_, and aud.example.BinarySearchTreeExample.tree_.
|
static |
Start interactive example.
Type '?' for help.
Reimplemented from aud.util.SingleStepper.
Definition at line 35 of file BinarySearchTreeExample.java.
References aud.example.BinarySearchTreeExample.decorator_, aud.util.SingleStepper.halt(), and aud.BinarySearchTree.Decorator.highlight().
|
protected |
Reimplemented from aud.util.SingleStepper.
Definition at line 27 of file BinarySearchTreeExample.java.
References aud.util.DotViewer.display(), aud.example.BinarySearchTreeExample.tree_, and aud.example.BinarySearchTreeExample.viewer_.
|
protected |
Definition at line 15 of file BinarySearchTreeExample.java.
Referenced by aud.example.BinarySearchTreeExample.BinarySearchTreeExample(), and aud.example.BinarySearchTreeExample.main().
|
protected |
Definition at line 12 of file BinarySearchTreeExample.java.
Referenced by aud.example.BinarySearchTreeExample.BinarySearchTreeExample(), and aud.example.BinarySearchTreeExample.onHalt().
|
protected |
Definition at line 13 of file BinarySearchTreeExample.java.
Referenced by aud.example.BinarySearchTreeExample.onHalt().