Java Reference
In-Depth Information
Accessing the figure's update and layout manager
Painting and validating
Setting and getting focus
Handling events for structural changes, movement, resizing, and so on
Figure Canvas
SWT Canvas
LWS
Update
Manager
Event
Dispatcher
Root Figure
Contents
Content Root
Figure
Figure
Figure
Figure 9-2 Draw2d lightweight system
Figure 9-3 illustrates a user interaction scenario to describe how these ele-
ments work together.
9.1.2 Text
In addition to figures, Draw2d has support for text. Labels ( org.eclipse.
draw2d.Label ) are the primary means, while “rich text” features are also avail-
able in the org.eclipse.draw2d.text package. This allows for wrapping
content such as a paragraph, mixing nontext with text (Tufte would love this!),
supporting bidirectional support, and more.
 
Search WWH ::




Custom Search