Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » how to check whether two containers are overlapping(how to check whether two containers are overlapping)
how to check whether two containers are overlapping [message #1809110] Tue, 09 July 2019 09:12 Go to next message
Sharmila D is currently offline Sharmila DFriend
Messages: 79
Registered: June 2018
Member
Hi

Iam using my own layout provider.Here I need to check whether the containers are overlapping.Is there any API to check whether the containers are overlapping.

Re: how to check whether two containers are overlapping [message #1809151 is a reply to message #1809110] Wed, 10 July 2019 08:54 Go to previous message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 224
Registered: August 2010
Senior Member
Hi,

There is no specific API in Sirius but you can use org.eclipse.draw2d.geometry.Rectangle.intersects(Rectangle). The Rectangle type is the type for draw2D figure bounds. The figure can be retrieved from the edit part.

Florian
Previous Topic:Remove label expression space for basic custom widget
Next Topic:[ANN] Sirius 6.2.2
Goto Forum:
  


Current Time: Tue Aug 20 22:20:24 GMT 2019

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

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

Back to the top