Room to Zoom: Building Zoomable GUIs with Piccolo

Piccolo is an open-source API for building 2D structured graphics. One of its most exciting features is the ability to create GUI widgets with interactive zooming capability. Dragging with the left mouse button pans the contents of the display widget. Dragging with the right mouse button zooms the display in and out. Other features include bounds management, object picking/selection, and animation.

Figure 6-10 shows some graphics drawn in a PFrame (a Piccolo frame class). The frame shows a closed line path made with randomly generated points. By default, the frame is zoomed out to display ...

Get Wicked Cool Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.