Chapter 2. A Simple Draw2D Example

Before covering the Draw2D infrastructure (see Chapter 3 on page 21) and each area of building a Draw2D diagram in depth, it is useful to create a simple example on which discussion can be based. This chapter takes a step-by-step approach to creating a simple Draw2D diagram representing the relationship between two people and their offspring. To start, we take an unsophisticated “brute force” approach, which we will refactor and refine in later chapters as we introduce more concepts. This process provides valuable firsthand experience using the Draw2D API.

2.1 Draw2D Installation

Select the Help > Install New Software... menu to install the GEF framework into Eclipse. When the Install wizard opens, select the ...

Get The Eclipse Graphical Editing Framework (GEF) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.