Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Converting UnderlyingLayer coordinates to GridLayer coordinates?
Converting UnderlyingLayer coordinates to GridLayer coordinates? [message #1064640] Thu, 20 June 2013 11:16 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 258
Registered: July 2012
Senior Member
Hello!
I implemented a Layer "MyLayer" and made it a part of the table-bodystack.

On top of the Stack there is a Gridlayer, as on this picture http://www.eclipse.org/nattable/images/NatTable_Architecture.png

Now the cell coordinates inside GridLayer do not match the cell coordinates inside of "MyLayer" since the GridLayer is increased by "ColumnHeaderayer" and "RowHeaderLayer".

E.g. if "ColumnHeaderayer" and "RowHeaderLayer" have the height/width of 1 cell -
Coordinates 5/5 in "MyLayer" would become 6/6 in GridLayer.


Question:
Is there a possibility to convert the cell coordinates in "MyLayer" to Gridlayer coordinates?
Re: Converting UnderlyingLayer coordinates to GridLayer coordinates? [message #1064676 is a reply to message #1064640] Thu, 20 June 2013 13:56 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 1434
Registered: July 2012
Senior Member
Try to use the LayerUtil.convert... methods. They should fit your needs.
Re: Converting UnderlyingLayer coordinates to GridLayer coordinates? [message #1064721 is a reply to message #1064676] Thu, 20 June 2013 16:28 Go to previous message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 258
Registered: July 2012
Senior Member
Thnx Dirk!
Previous Topic:Context menu option for tree grid
Next Topic:Place a Button near the ColumnHeader
Goto Forum:
  


Current Time: Mon Dec 22 03:42:46 GMT 2014

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

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