Modularity Manual Graph with Java 2D