Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Simple question about polygon/shape borders
Simple question about polygon/shape borders [message #204156] Wed, 30 November 2005 16:12 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:any suggestion for an 'ExpandAnimatedFigure'
Next Topic:ScrollingGraphicalViewer in a FormPage
Goto Forum:
  


Current Time: Thu Jan 16 16:46:29 GMT 2025

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

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

Back to the top