DoxygenExample Class Reference

The DoxygenExample class extends the Frame class, provides a graphical user interface (GUI) and includes main(). More...

List of all members.

Public Member Functions

 DoxygenExample (String title)
 The constructor generates and places the graphical componets of the DoxygenExample frame.
void randomizeArrays ()
 This function fills the arrays with randomly generated numbers and then calls the showArray() function to visualize the new numbers.
void startSelectionSort ()
 This function generates and starts a new Thread for the selectionsort algorithm.
void startInsertionSort ()
 This function generates and starts a new Thread for the insertionsort algorithm.
void startBubbleSort ()
 This function generates and starts a new Thread for the bubblensort algorithm.
void sortArrays ()
 This function generates and starts all sorting algorithms simultaneously.
void ssButtonActionPerformed (ActionEvent evt)
 This is the action handling for the ssButton. This function will call the startSelectionSort() function to start a selectionsort thread.
void isButtonActionPerformed (ActionEvent evt)
 This is the action handling for the isButton. This function will call the startInsertionSort() function to start a insertionsort thread.
void bsButtonActionPerformed (ActionEvent evt)
 This is the action handling for the bsButton. This function will call the startBubbleSort() function to start a bubblesort thread.
void randomizeButtonActionPerformed (ActionEvent evt)
 This is the action handling for the randomizeButton. By pressing this button this function will call the randomizeArrays() function, which fills the arrays with new random numbers.
void randStartButtonActionPerformed (ActionEvent evt)
 This is the action handling for the randStartButton. This function will do exactly the same tasks as randomizeButtonActionPerformed(), but will also call the sortArrays() function to sort the arrays with simultaneously running sorting threads.
void startButtonActionPerformed (ActionEvent evt)
 This is the action handling for the startButton. By pressing this button, the sortArrays() function will be called without(!) randomize the arrays. Note, that most algorithms run much faster if the array is aready sorted.
void exitButtonActionPerformed (ActionEvent evt)
 This is the action handling for the exitButton. By pressing this button, the application will terminate.

Static Public Member Functions

static void main (String[] args)
 The main function. The one and only job for this function is to generate a new DoxygenExample instance.

Private Attributes

Panel ssPanel = new Panel(null)
Panel isPanel = new Panel(null)
Panel bsPanel = new Panel(null)
Label label1 = new Label()
Label label2 = new Label()
Label label3 = new Label()
Panel buttonPanel = new Panel(null)
Button startButton = new Button()
Button randomizeButton = new Button()
Button randStartButton = new Button()
Button ssButton = new Button()
Button isButton = new Button()
Button bsButton = new Button()
Button exitButton = new Button()
Label ssTimeLabel = new Label()
Label isTimeLabel = new Label()
Label bsTimeLabel = new Label()
int[] ssArray = new int[210]
int[] isArray = new int[210]
int[] bsArray = new int[210]


Detailed Description

The DoxygenExample class extends the Frame class, provides a graphical user interface (GUI) and includes main().

This class, extending the Frame class, contains the main() function, which will create a new DoxygenExample frame instance.
The program will sort integer arrays with:

The algorithms are executed as threads and can be started simultaneously or separately.
To visualize the processes, the integer arrays will be shown as colored lines.

Definition at line 46 of file DoxygenExample.java.


Constructor & Destructor Documentation

DoxygenExample.DoxygenExample String  title  ) 
 

The constructor generates and places the graphical componets of the DoxygenExample frame.

Parameters:
title - The title for the frame.

Definition at line 87 of file DoxygenExample.java.


Member Function Documentation

void DoxygenExample.bsButtonActionPerformed ActionEvent  evt  ) 
 

This is the action handling for the bsButton. This function will call the startBubbleSort() function to start a bubblesort thread.

Definition at line 390 of file DoxygenExample.java.

void DoxygenExample.exitButtonActionPerformed ActionEvent  evt  ) 
 

This is the action handling for the exitButton. By pressing this button, the application will terminate.

Definition at line 429 of file DoxygenExample.java.

void DoxygenExample.isButtonActionPerformed ActionEvent  evt  ) 
 

This is the action handling for the isButton. This function will call the startInsertionSort() function to start a insertionsort thread.

Definition at line 381 of file DoxygenExample.java.

static void DoxygenExample.main String[]  args  )  [static]
 

The main function. The one and only job for this function is to generate a new DoxygenExample instance.

Definition at line 438 of file DoxygenExample.java.

void DoxygenExample.randomizeArrays  ) 
 

This function fills the arrays with randomly generated numbers and then calls the showArray() function to visualize the new numbers.

Definition at line 225 of file DoxygenExample.java.

void DoxygenExample.randomizeButtonActionPerformed ActionEvent  evt  ) 
 

This is the action handling for the randomizeButton. By pressing this button this function will call the randomizeArrays() function, which fills the arrays with new random numbers.

Definition at line 399 of file DoxygenExample.java.

void DoxygenExample.randStartButtonActionPerformed ActionEvent  evt  ) 
 

This is the action handling for the randStartButton. This function will do exactly the same tasks as randomizeButtonActionPerformed(), but will also call the sortArrays() function to sort the arrays with simultaneously running sorting threads.

Definition at line 409 of file DoxygenExample.java.

void DoxygenExample.sortArrays  ) 
 

This function generates and starts all sorting algorithms simultaneously.

Definition at line 316 of file DoxygenExample.java.

References sorting.Sort.setSettings().

Here is the call graph for this function:

void DoxygenExample.ssButtonActionPerformed ActionEvent  evt  ) 
 

This is the action handling for the ssButton. This function will call the startSelectionSort() function to start a selectionsort thread.

Definition at line 372 of file DoxygenExample.java.

void DoxygenExample.startBubbleSort  ) 
 

This function generates and starts a new Thread for the bubblensort algorithm.

Definition at line 293 of file DoxygenExample.java.

References sorting.Sort.setSettings().

Here is the call graph for this function:

void DoxygenExample.startButtonActionPerformed ActionEvent  evt  ) 
 

This is the action handling for the startButton. By pressing this button, the sortArrays() function will be called without(!) randomize the arrays. Note, that most algorithms run much faster if the array is aready sorted.

Definition at line 420 of file DoxygenExample.java.

void DoxygenExample.startInsertionSort  ) 
 

This function generates and starts a new Thread for the insertionsort algorithm.

Definition at line 270 of file DoxygenExample.java.

References sorting.Sort.setSettings().

Here is the call graph for this function:

void DoxygenExample.startSelectionSort  ) 
 

This function generates and starts a new Thread for the selectionsort algorithm.

Definition at line 248 of file DoxygenExample.java.

References sorting.Sort.setSettings().

Here is the call graph for this function:


Member Data Documentation

int [] DoxygenExample.bsArray = new int[210] [private]
 

Definition at line 77 of file DoxygenExample.java.

Button DoxygenExample.bsButton = new Button() [private]
 

Definition at line 67 of file DoxygenExample.java.

Panel DoxygenExample.bsPanel = new Panel(null) [private]
 

Definition at line 52 of file DoxygenExample.java.

Label DoxygenExample.bsTimeLabel = new Label() [private]
 

Definition at line 73 of file DoxygenExample.java.

Panel DoxygenExample.buttonPanel = new Panel(null) [private]
 

Definition at line 60 of file DoxygenExample.java.

Button DoxygenExample.exitButton = new Button() [private]
 

Definition at line 68 of file DoxygenExample.java.

int [] DoxygenExample.isArray = new int[210] [private]
 

Definition at line 76 of file DoxygenExample.java.

Button DoxygenExample.isButton = new Button() [private]
 

Definition at line 66 of file DoxygenExample.java.

Panel DoxygenExample.isPanel = new Panel(null) [private]
 

Definition at line 51 of file DoxygenExample.java.

Label DoxygenExample.isTimeLabel = new Label() [private]
 

Definition at line 72 of file DoxygenExample.java.

Label DoxygenExample.label1 = new Label() [private]
 

Definition at line 55 of file DoxygenExample.java.

Label DoxygenExample.label2 = new Label() [private]
 

Definition at line 56 of file DoxygenExample.java.

Label DoxygenExample.label3 = new Label() [private]
 

Definition at line 57 of file DoxygenExample.java.

Button DoxygenExample.randomizeButton = new Button() [private]
 

Definition at line 63 of file DoxygenExample.java.

Button DoxygenExample.randStartButton = new Button() [private]
 

Definition at line 64 of file DoxygenExample.java.

int [] DoxygenExample.ssArray = new int[210] [private]
 

Definition at line 75 of file DoxygenExample.java.

Button DoxygenExample.ssButton = new Button() [private]
 

Definition at line 65 of file DoxygenExample.java.

Panel DoxygenExample.ssPanel = new Panel(null) [private]
 

Definition at line 50 of file DoxygenExample.java.

Label DoxygenExample.ssTimeLabel = new Label() [private]
 

Definition at line 71 of file DoxygenExample.java.

Button DoxygenExample.startButton = new Button() [private]
 

Definition at line 62 of file DoxygenExample.java.


The documentation for this class was generated from the following file:
Generated on Thu Jun 22 19:07:31 2006 for Doxygen Example (Java) by  doxygen 1.4.5