Trying to make a means of drawing cladograms in Java(developed in JavaSE 14)
As of now, the way that this program runs is by running CladogramDrawer.java. It requires a text file to exist and be opened. Cladograms can be made with an empty text file by using the add drop down menu. the leaf option will ask for a name and then it will add a leaf with the given name. The node option will ask for a name then ask for the children. Simply select one child at a time with the drop down menu and click the first option when finished. To resize the cladogram simply select the resize option from the window menu and input a width and a height.
If a certain cladogram wants to be read it must follow the format:
- All leaves must be listed first and only have a name. Leaves are taxa at the end of the cladogram.
- Nodes are placed after ALL leaves. They begin with a name and then followed by the number of the taxa they encompass separated by spaces.
Ex: A simple relationship of Canis encompassing Wolf and Dog will look like as follows
Wolf
Dog
Canis 1 2
Note how Canis is followed by 1 and 2 to since Wolf is line 1 and Dog is line 2. A more complex relationship with the Red Fox can be as follows
Wolf
Dog
RedFox
Canis 1 2
Canidae 3 4
Note how RedFox has no spaces as the name can't have spaces. Canidae is followed by 3 and 4 as it encompasses RedFox and Canis.
The file menu options allows for opening of another text file or saving and overrriding the currently selected file.
Add a better UI functionality like deletion
Fix bug that appears to break manual cladograms at sufficient sizes