benjaminaaron / GraphVisualizer

a simple graph visualizer to get into things around graphs
0 stars 0 forks source link

changing orientiation #24

Open benjaminaaron opened 11 years ago

benjaminaaron commented 11 years ago

It would be nice to be able to change the entire orientation of the graph. So building the tree from left to right for instance instead of top down. This can probably done fairly simply in the GraphPanel - together with the zoom ability. Like a visual post-production of the view?

ghost commented 11 years ago

I was if curious has something similar, I know from Windows Forms and I found something ;-): http://docs.oracle.com/javase/7/docs/api/java/awt/Graphics2D.html#transform(java.awt.geom.AffineTransform) http://docs.oracle.com/javase/7/docs/api/java/awt/geom/AffineTransform.html

benjaminaaron commented 11 years ago

Nice!! I might want to implement it first myself though to understand the mechanics of it... then i can still use the library method ;)