Skip to main content



      Home
Home » Eclipse Projects » GEF » why getHeight() returns top+bottom in class Insets?
why getHeight() returns top+bottom in class Insets? [message #167257] Sun, 06 February 2005 21: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] Sun, 06 February 2005 23:42 Go to previous messageGo to next message
Eclipse UserFriend
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 01: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: Tue Jun 24 13:33:21 EDT 2025

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

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

Back to the top