Forums

Full Version: PrefuseJScrollPane demo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ever wanted prefuse to have scrollbars?

I thought: dragging with mouse is so cool, I don“t need that.
But as soon as I embedded prefuse with my swing gui I thought: hm scrollbars would be nice.

So here is my first version of a "scrollpane emulator" for prefuse.
If you find bugs feel free to contact me or correct them (where I would appreciate it if you would post that here).

You can create the pane like that:
Code:
m_scrollPane = new PrefuseJScrollPane(m_display);
Then simply add the pane to your container and have months of fun scrolling around Wink

[attachment=343]
I made some smaller changes

- Rounding could lead to flickering scrollbars when zooming and graph fits on screen
- Somehow the scrollbars started to show wrong behavior when dragging graph out of the pane

[attachment=344]
Reference URL's