Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » why getHeight() returns top+bottom in class Insets?
why getHeight() returns top+bottom in class Insets? [message #167257] Mon, 07 February 2005 02:26 Go to next message
Eclipse UserFriend
Originally posted by: jianminjin.msn.com

i can't understand this, i think it should be bottom-top,
what's meaning of height here?
Re: why getHeight() returns top+bottom in class Insets? [message #167274 is a reply to message #167257] Mon, 07 February 2005 04:42 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Insets are not a rectangle. Rather the space surrounding one. So, a figure
of size 50, 50 with a line border of 1 would mean the figure's insets are 1,
1, 1, 1 (for all 4 directions). And that means the figure's client area's
size is 48x48. The concept of Insets in draw2d is the same as in AWT. You
can look that up to see if it makes more sense to you (it might be better
documented that draw2d).

"jin" <jianminjin@msn.com> wrote in message
news:cu6jla$h7a$1@www.eclipse.org...
> i can't understand this, i think it should be bottom-top,
> what's meaning of height here?
>
>
Re: why getHeight() returns top+bottom in class Insets? [message #167297 is a reply to message #167274] Mon, 07 February 2005 06:41 Go to previous message
Eclipse UserFriend
Originally posted by: jianminjin.msn.com

>Pratik Shah wrote:
> Insets are not a rectangle. Rather the space surrounding one. So, a figure
> of size 50, 50 with a line border of 1 would mean the figure's insets are 1,
> 1, 1, 1 (for all 4 directions). And that means the figure's client area's
> size is 48x48. The concept of Insets in draw2d is the same as in AWT. You
> can look that up to see if it makes more sense to you (it might be better
> documented that draw2d).
i understand now , thanks for ur explaination :D
Previous Topic:Complex Command tip needed
Next Topic:Problem with Local / absolute coordinates
Goto Forum:
  


Current Time: Fri Sep 20 02:07:12 GMT 2024

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

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

Back to the top