implemented method to make nodes move that would be gone to invisibility when resizing the window. now the nodes move with the window
fixed issue when the complete graph is moved by resizing the window in combination with the vertex moving when they are out of bounds.
solution: dont se the size of the layout! just modify preferred size of vv on resize
marked the unused code by make it a comentar
refactored the code
- renamed class "Node" to "Vertex"
- made the Factories inner classes of the Edge and Vertex classes
- implemented the Factories as Singleton
- refactored code to work with new Factory-implementations
implemented weight getter and setter and the id is now managed by the factory
added a new class that will be the main class
implemented the context menu for edges
embedded the creation of the right edge menu in the PopupMenuListener class
removed the main method (its now be done by vigral.java)