2

In the blackberry JDE 4.7,

under the TouchEvent, there are two similar sounding methods:

  • getX(int touch) "return mapped x coordinate"
  • getGlobalX(int touch) "return global x coordindate"

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?

Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
yamspog
  • 18,173
  • 17
  • 63
  • 95

2 Answers2

6

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

Henrik P. Hessel
  • 36,243
  • 17
  • 80
  • 100
0

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

chollida
  • 7,834
  • 11
  • 55
  • 85