Skip to main content


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: 260
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: 2903
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: 260
Registered: July 2012
Senior Member
Thnx Dirk!
Previous Topic:Issue with Nattable StructuralRefresh command
Next Topic:Eclipse 3.7 with NatTable 0.9 to Eclipse 4.2 with Nattable 1.0.0
Goto Forum:
  


Current Time: Wed Sep 25 15:29:27 GMT 2024

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

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

Back to the top