blackberry JDE 4.7 - TouchEvent 类 - getX 和 getGlobalX 之间的区别

发布于 2024-08-02 11:52:52 字数 222 浏览 5 评论 0原文

在blackberry JDE 4.7中,

在TouchEvent下,有两个类似的发声方法:

  • getX(int touch) “返回映射的x坐标”
  • getGlobalX(int touch) “返回全局x坐标”

有谁知道这两者之间有什么区别? javadoc 讨论了映射与全局,但我不确定这意味着什么。

有什么帮助吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

趴在窗边数星星i 2024-08-09 11:52:52

getX 是字段(按钮、列表字段)中的位置,getGlobalX 是屏幕中的 x 位置。

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

耳钉梦 2024-08-09 11:52:52

就像 rAyt 提到的那样。

映射的坐标是相对于您当前的视图或视野的。全局坐标是相对于您的屏幕的。

此链接可能会帮助您:
http://supportforums.blackberry.com/ rim/board/message?board.id=java_dev&thread.id=36636

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文