Skip to main content



      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 02:11 Go to next message
Eclipse UserFriend
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 09:33 Go to previous messageGo to next message
Eclipse UserFriend
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 09:37] by Moderator

Re: Hover outline is having gap on right+bottom side [message #1795338 is a reply to message #1795333] Thu, 20 September 2018 10:25 Go to previous messageGo to next message
Eclipse UserFriend
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 10:28] by Moderator

Re: Hover outline is having gap on right+bottom side [message #1802131 is a reply to message #1795338] Fri, 01 February 2019 12:20 Go to previous message
Eclipse UserFriend
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: Sun Apr 20 03:52:07 EDT 2025

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

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

Back to the top