Simple question about polygon/shape borders [message #204156] |
Wed, 30 November 2005 16:12 |
Eclipse User |
|
|
|
Originally posted by: jjesselli.harmonia.com
Ahoy!
I have a quick question. I've created an EditPart that uses a diamond as
its figure. At first, I simply extended Polygon but more recently I
extended Shape. However, I get the same problem either way -- when I
have setOutline(true), the bounds of the figure seems to be 1x1 pixel
too small. The result is that the right and bottom corners of my diamond
are slightly cut off. What am I doing wrong? If I simply incease the
size of the bounds, the figure is no longer centered in the bounding
box. Any help would be greatly appreciated.
Cheers!
-- J Jesselli
|
|
|
Re: Simple question about polygon/shape borders [message #204332 is a reply to message #204156] |
Thu, 01 December 2005 19:49 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
You are painting in the wrong places. Bottom and Right sides are exclusive,
Top and Left are inclusive.
"Justin Jesselli" <jjesselli@harmonia.com> wrote in message
news:dmkj0j$ufa$1@news.eclipse.org...
> Ahoy!
>
> I have a quick question. I've created an EditPart that uses a diamond as
> its figure. At first, I simply extended Polygon but more recently I
> extended Shape. However, I get the same problem either way -- when I have
> setOutline(true), the bounds of the figure seems to be 1x1 pixel too
> small. The result is that the right and bottom corners of my diamond are
> slightly cut off. What am I doing wrong? If I simply incease the size of
> the bounds, the figure is no longer centered in the bounding box. Any help
> would be greatly appreciated.
>
> Cheers!
>
> -- J Jesselli
|
|
|
Powered by
FUDForum. Page generated in 0.05123 seconds