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: 81
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: 270
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: Fri Apr 26 10:37:00 GMT 2024

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

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

Back to the top