Skip to main content



      Home
Home » Eclipse Projects » NatTable » Converting UnderlyingLayer coordinates to GridLayer coordinates?
Converting UnderlyingLayer coordinates to GridLayer coordinates? [message #1064640] Thu, 20 June 2013 07:16 Go to next message
Eclipse UserFriend
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 09:56 Go to previous messageGo to next message
Eclipse UserFriend
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 12:28 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 18:32:30 EDT 2025

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

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

Back to the top