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] |
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:
Definition at line 46 of file DoxygenExample.java.
|
The constructor generates and places the graphical componets of the DoxygenExample frame.
Definition at line 87 of file DoxygenExample.java. |
|
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. |
|
This is the action handling for the exitButton. By pressing this button, the application will terminate.
Definition at line 429 of file DoxygenExample.java. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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: |
|
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. |
|
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: |
|
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. |
|
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: |
|
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: |
|
Definition at line 77 of file DoxygenExample.java. |
|
Definition at line 67 of file DoxygenExample.java. |
|
Definition at line 52 of file DoxygenExample.java. |
|
Definition at line 73 of file DoxygenExample.java. |
|
Definition at line 60 of file DoxygenExample.java. |
|
Definition at line 68 of file DoxygenExample.java. |
|
Definition at line 76 of file DoxygenExample.java. |
|
Definition at line 66 of file DoxygenExample.java. |
|
Definition at line 51 of file DoxygenExample.java. |
|
Definition at line 72 of file DoxygenExample.java. |
|
Definition at line 55 of file DoxygenExample.java. |
|
Definition at line 56 of file DoxygenExample.java. |
|
Definition at line 57 of file DoxygenExample.java. |
|
Definition at line 63 of file DoxygenExample.java. |
|
Definition at line 64 of file DoxygenExample.java. |
|
Definition at line 75 of file DoxygenExample.java. |
|
Definition at line 65 of file DoxygenExample.java. |
|
Definition at line 50 of file DoxygenExample.java. |
|
Definition at line 71 of file DoxygenExample.java. |
|
Definition at line 62 of file DoxygenExample.java. |