Chapter 4. Figures

Draw2D canvases contain figures, which in turn can contain “nested” figures (see Section 4.3.2 on page 35). Both the z-order and the nesting of each figure determine what portion of that figure is visible to the user and thus what portion must be rendered or painted (see Section 4.4.4 on page 40). For each figure, the painting process is broken into a few steps, including painting the client area, the children, and the border (see Section 4.4.2 on page 38). The Draw2D framework includes a number of common figures such as line, rectangle, polygon, and ellipse (see Section 4.2 on page 29). Complex figures can be created by nesting simpler figures and implementing figures with custom painting behavior. This chapter discusses 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.