Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Create visually apealing trees in Java using Trees data structures

Notifications You must be signed in to change notification settings

Maickii/Java_Tree

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java_Tree

The purpose of this project is to create visually apealing trees in Java using Trees data structures.

Change it to your liking!

It is easy modify many properties of the trees. Here is a list of the things you can change in this code.

  1. Number of trees.
    Just add more Tree objects Tree tree = new Tree(15); to main.
   public static void main(String[] args) {
      Tree tree = new Tree(limit);
   }
  1. Size of trees
    use tree.setSize(size); to change the size of the tree.

  2. Positions

  3. Angle position of trees
    use tree.setTreeAngle(angle); to set the angle of the tree. Angle is measured in counter-clockwise degrees, where 0 is the right-most of the screen and 180 is the left-most of the screen.

  4. Angle separation
    use tree.setSeparationAngle(Angle); to set the angle seperation between branches. This angle will dictate how far appart should each branch be from its sibling branch. You can get funny/interesiting looking trees if you play with this property.

  5. Delay between paintings

Done!

After you are done editing your tree, just call tree.draw(); to draw it!

alt text

About

Create visually apealing trees in Java using Trees data structures

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.