edu.princeton.cs.algs4.growingtree.framework
Class TreeVisualization

java.lang.Object
  extended by edu.princeton.cs.algs4.growingtree.framework.TreeVisualization
All Implemented Interfaces:
java.awt.event.WindowListener, java.util.EventListener

public class TreeVisualization
extends java.lang.Object
implements java.awt.event.WindowListener

The TreeJApplet presents an applet that allows for the drawing of different forms of tress.

Version:
2.5 9/01/02
Author:
Corey Sanders

Field Summary
static java.lang.String CREATOR_INFORMATION
           
static java.lang.String LICENSE_INFORMATION
           
static java.lang.String PROGRAM_INFORMATION
           
static java.lang.String VERSION
           
 
Constructor Summary
TreeVisualization()
           
 
Method Summary
<P extends NodeProperties>
void
addTree(java.lang.String name, P p, IInsertOperator<P> inserter, ISearchOperator<P> searcher, IDeleteOperator<P> deleter)
           
<P extends NodeProperties>
void
addTree(java.lang.String name, P p, IInsertOperator<P> inserter, ISearchOperator<P> searcher, IDeleteOperator<P> deleter, boolean allowRotations)
           
<P extends NodeProperties>
void
addTree(java.lang.String name, P p, IInsertOperator<P> inserter, ISearchOperator<P> searcher, IDeleteOperator<P> deleter, IExperimentLogger<P> logger)
           
<P extends NodeProperties>
void
addTree(java.lang.String name, P p, IInsertOperator<P> inserter, ISearchOperator<P> searcher, IDeleteOperator<P> deleter, IExperimentLogger<P> logger, boolean allowRotations)
           
static void main(java.lang.String[] args)
          Creates new Applet
 void start()
           
 void windowActivated(java.awt.event.WindowEvent e)
          Invoked when the Window is set to be the active Window.
 void windowClosed(java.awt.event.WindowEvent e)
          Invoked when a window has been closed as the result of calling dispose on the window.
 void windowClosing(java.awt.event.WindowEvent e)
          Invoked when the user attempts to close the window from the window's system menu.
 void windowDeactivated(java.awt.event.WindowEvent e)
          Invoked when a Window is no longer the active Window.
 void windowDeiconified(java.awt.event.WindowEvent e)
          Invoked when a window is changed from a minimized to a normal state.
 void windowIconified(java.awt.event.WindowEvent e)
          Invoked when a window is changed from a normal to a minimized state.
 void windowOpened(java.awt.event.WindowEvent e)
          Invoked the first time a window is made visible.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values

PROGRAM_INFORMATION

public static final java.lang.String PROGRAM_INFORMATION
See Also:
Constant Field Values

LICENSE_INFORMATION

public static final java.lang.String LICENSE_INFORMATION
See Also:
Constant Field Values

CREATOR_INFORMATION

public static final java.lang.String CREATOR_INFORMATION
See Also:
Constant Field Values
Constructor Detail

TreeVisualization

public TreeVisualization()
Method Detail

main

public static void main(java.lang.String[] args)
Creates new Applet


addTree

public <P extends NodeProperties> void addTree(java.lang.String name,
                                               P p,
                                               IInsertOperator<P> inserter,
                                               ISearchOperator<P> searcher,
                                               IDeleteOperator<P> deleter,
                                               boolean allowRotations)

addTree

public <P extends NodeProperties> void addTree(java.lang.String name,
                                               P p,
                                               IInsertOperator<P> inserter,
                                               ISearchOperator<P> searcher,
                                               IDeleteOperator<P> deleter)

addTree

public <P extends NodeProperties> void addTree(java.lang.String name,
                                               P p,
                                               IInsertOperator<P> inserter,
                                               ISearchOperator<P> searcher,
                                               IDeleteOperator<P> deleter,
                                               IExperimentLogger<P> logger,
                                               boolean allowRotations)

addTree

public <P extends NodeProperties> void addTree(java.lang.String name,
                                               P p,
                                               IInsertOperator<P> inserter,
                                               ISearchOperator<P> searcher,
                                               IDeleteOperator<P> deleter,
                                               IExperimentLogger<P> logger)

start

public void start()

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Invoked when the Window is set to be the active Window.

Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Invoked when a window has been closed as the result of calling dispose on the window.

Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Invoked when the user attempts to close the window from the window's system menu.

Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Invoked when a Window is no longer the active Window.

Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Invoked when a window is changed from a minimized to a normal state.

Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Invoked when a window is changed from a normal to a minimized state.

Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Invoked the first time a window is made visible.

Specified by:
windowOpened in interface java.awt.event.WindowListener