Posted by: steveonjava on: July 5, 2009
I was looking for a JavaFX display shelf control (similar to the iTunes cover flow) that I could use for some WidgetFX GUI improvements. I couldn’t find anything that met my needs, so I rolled my own. Some of the design goals included:
I put together a quick screencast of the finished product (this is the first of many screencasts I will be putting together, so let me know how I can improve it — better audio is already on my short list):
Keith was my co-conspirator on this project and you can thank for the fine selection of Anime images in the demo.
The Shelf control includes the following features:
You can find the full source code as well as a runnable web start demo on the JFXtras Samples project web site here:
Speaking of JFXtras Samples, it is a new open repository of JavaFX samples targeted at teaching the language and APIs. JFXtras Samples is designed to be complementary to blogs such as this, by providing a searchable archive with full source access. Please join the community and post your samples by following the instructions here:
There are lots of little good nuggets in the Shelf implementation, such as rotation effects, image caching, and render cycle optimizations, so if there is interest, I will post a more detailed making-of-blog at steveonjava.com…
[...] link: JFXtras Shelf Control « JFXStudio: sketch, hack, share [...]
Very nice. And performance is very very good as well.
Very impressive. One question, one suggestions:
Question: can it only do images or could one put any node in the areas?
Suggestion: load-ahead, try to load images at least 2 pages of images ahead. The loading-on-demand is technically great but cosmetically should be as less visible as possible.
[...] of JFXtras, Stephen Chin has developed a ‘Shelf control’ (i.e. iTunes coverflow), which is now part of JFXtras. You can even watch a video which Stephen created to understand more about how the shelf control [...]
[...] XShelfView – A high performance Display Shelf control implementation with support for reflection, titles, and a scrollbar as showcased on JFXStudio. [...]
1 | lstroud73
July 5, 2009 at 3:16 pm
http://www.mindmeld.ws/blog/2009/07/05/javafx-shelf-control-the-good-bad-and-ugly/