Breaking changes in draw2d [message #46808] |
Tue, 03 December 2002 15:47 |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
width and height hints have become very useful in composing draw2d figures
in complex layouts.
One complex example of this will be in the GEF palette, which is built using
a GraphicalViewer and many of the draw2d layouts.
Figure now has a getMinumumSize(int widthHint, int heightHint) method, in
addition to the already exsiting
getMinimumSize() method, which is now *final* so that subclasses only have
one method to override. If your figure overrides getMinumumSize() (this is
rare), you will need to make changes.
LayoutManager and its implementation hierarchy now require hints on all
methods. This halved the number methods involved with calculating sizes,
and removed any ambiguity there too. If you have a layout that calculates
sizes, you will probably need to change the method signatures.
|
|
|
Powered by
FUDForum. Page generated in 0.03629 seconds