getRowPositionByY(y) is not returning correct row position when the table is scrolled down [message #1006658] |
Fri, 01 February 2013 10:47 |
karishma Agarwal Messages: 28 Registered: June 2011 |
Junior Member |
|
|
I have extended the class TreeLayer and implemented the function getConfigLabelsByPosition(int columnPosition, int rowPosition). The implementation of the function getRegionLabelsByXY(int x, int y) I have done as below:
public LabelStack getRegionLabelsByXY(int x, int y) {
int columnPositionByX = getColumnPositionByX(x);
int rowPositionByY = getRowPositionByY(y);
return getConfigLabelsByPosition(columnPositionByX, rowPositionByY);
}
Since it is returning the wrong value in getRowPositionByX() when the table is scrolled down, therefore it is attaching wrong labels to the cell and hence my code breaks. Could you tell me a way out of it.
Thanks,
Karishma.
[Updated on: Fri, 01 February 2013 10:52] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05738 seconds