Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Hover outline is having gap on right+bottom side
Hover outline is having gap on right+bottom side [message #1795186] Tue, 18 September 2018 06:11 Go to next message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 179
Registered: July 2009
Senior Member
Hi

I am facing this gap in my application, but as well in the simple mind map application it can be seen:

index.php/fa/33902/0/

Is this by purpose? Can it be changed?

Frank
Re: Hover outline is having gap on right+bottom side [message #1795333 is a reply to message #1795186] Thu, 20 September 2018 13:33 Go to previous messageGo to next message
Shenwei Zheng is currently offline Shenwei ZhengFriend
Messages: 22
Registered: December 2016
Junior Member
Hi Frank,

you can try the following code in MindMapNodeVisual and you will see the difference.
shape.setStrokeWidth(5);

shape.setStrokeWidth(5);
shape.setStrokeType(StrokeType.INSIDE);


I think it is casued by the stroke of the shape. The hovered bound has the dimension of the actual size of the shape but it doesn't start at the (minx,miny) of the shape.
I posted a similar question https://www.eclipse.org/forums/index.php/t/1094514/ and it should be the same root cause.

Bests
Shenwei

[Updated on: Thu, 20 September 2018 13:37]

Report message to a moderator

Re: Hover outline is having gap on right+bottom side [message #1795338 is a reply to message #1795333] Thu, 20 September 2018 14:25 Go to previous messageGo to next message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 179
Registered: July 2009
Senior Member
Hello Shenwei

thanks for the hint.
The

 shape.setStrokeType(StrokeType.INSIDE);


helped, thanks.

And your reported problem with the wrong line dimensions also affects my application.

I have the shape with stroke inside, and a line starting from left side at 0.0 (with cap type BUTT), this causes the hover outline to have a gap on the right side.

index.php/fa/33917/0/

When i start that line from 1.0, the outline is good.

[Updated on: Thu, 20 September 2018 14:28]

Report message to a moderator

Re: Hover outline is having gap on right+bottom side [message #1802131 is a reply to message #1795338] Fri, 01 February 2019 17:20 Go to previous message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 230
Registered: March 2015
Senior Member
Thank you very much for the reports!

I looked into this the other day and thought the issue was only related to stroke, i.e. every non-uniform stroke is incorrectly accounted for by GeometryNode.

However, maybe we can add some logic for the common cases.

I will investigate again...

Best regards,
Matthias
Previous Topic:[GEF3] Help needed to fix Thumbnail on Mac Mojave
Next Topic:How can i set the initial zoom factor to the InfiniteCanvas?
Goto Forum:
  


Current Time: Fri Apr 19 10:10:08 GMT 2024

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

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

Back to the top