O'Reilly logo

The Eclipse Graphical Editing Framework (GEF) by Eric Clayberg, Jaime Wren, Dan Rubel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Layers and Viewports

Our canvas presents a rather limited space. How should we nicely display our genealogy once we have 10, 100, 1000 more people represented? How should we see the “big picture” when we display a large number of people? How do we prevent connections from creating a mess of overlapping lines? In this chapter we explore layering, coordinates, and scaling to solve these issues.

7.1 Layers

Up to this point, all our figures, including connections, have resided in a single root figure. This keeps things simple but unfortunately means that we cannot use the ShortestPathConnectionRouter (see Section 6.4.5 on page 85) to properly route all connections around person and note figures. Currently, when one PersonFigure is positioned ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required