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 ...
Get The Eclipse Graphical Editing Framework (GEF) 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.