Skip to content

Implement a java awt based GUI application that can show sort process.

License

Notifications You must be signed in to change notification settings

bluezealot/sortbyrinho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sortbyrinho

Implement a java awt based GUI application that can show sort process.

usage

Build and run. Click "Generate" button, the black bars represent data shows in the upper text box, then copy (input) your sort algorithm (with javascript) into the other text box, then click the "Run" button, the upper textbox then shows you the sorting process of your algorithm. In this project there are three algorithm is provided for reference, copy it into the text box and try. Some screen shorts for reference.

  1. Generate data and input sort algorithm. first step
  2. Click run. second step
  3. Sort complete. third step

programming apis

Sort algorithm is written in javascript, the following apis are provided. These apis can be accessed in the context of javascript.

  1. SortData.getDataAt(index) : Get a sort data by its index.
  2. SortData.getDataCount() : Get the sort data count.
  3. SortData.swap(leftIndex, rightIndex) : Swap the left and right data in the sort list.
  4. SortData.setSortComplete(boolean) : Set true if the sort algorithm is completed.

About

Implement a java awt based GUI application that can show sort process.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published