yamspog
yamspog

Reputation: 18343

blackberry JDE 4.7 - TouchEvent Class - difference between getX and getGlobalX

In the blackberry JDE 4.7,

under the TouchEvent, there are two similar sounding methods:

Does anyone know what the difference is between the two? The javadocs talk about mapped vs global but I'm not sure what that means.

Any help poindexter?

Upvotes: 2

Views: 471

Answers (2)

chollida
chollida

Reputation: 7894

Like rAyt mentions.

The mapped coordinate is with respect to your current view or field. The global coordinate is with respect to your screen.

This link may help you: http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&thread.id=36636

Upvotes: 0

Henrik P. Hessel
Henrik P. Hessel

Reputation: 36627

getX is the position in your field (button, listfield) and getGlobalX the x-position in your screen.

Upvotes: 6

Related Questions