/* * @(#)RootInsertionBSTTreeJPanel.java * * Last Modified: 9/15/01 */ import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.image.*; import java.awt.event.*; import java.awt.geom.*; import java.util.*; import java.beans.*; /** * This class provides the panel for a RootInsertionBSTTree. It keeps the graphics for drawing * the tree and the image for redrawing. It also keeps a timer for the animation and all changes * to the tree proceed through the panel. * * * @author Corey Sanders * @version 1.1 9/15/01 */ public class RootInsertionBSTTreeJPanel extends BSTTreeJPanel { /** * Sole constructor, setting the tree of the panel as a rootInsertedBSTTree. */ public RootInsertionBSTTreeJPanel() { super(); setTree(new RootInsertionBSTTreeHead(BSTTree.ANIMATING_BST_TREE_TYPE)); } }