Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Breaking changes in draw2d
Breaking changes in draw2d [message #46808] Tue, 03 December 2002 15:47
Eclipse UserFriend
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.
Previous Topic:Problem with logic editor example
Next Topic:enforcing order of child figures in a editpart
Goto Forum:
  


Current Time: Fri Dec 27 02:25:29 GMT 2024

Powered by FUDForum. Page generated in 0.03629 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top