新聞中心
DragInfo

成都創(chuàng)新互聯(lián)是一家專注于成都做網(wǎng)站、網(wǎng)站設(shè)計(jì)、外貿(mào)營(yíng)銷網(wǎng)站建設(shè)與策劃設(shè)計(jì),余姚網(wǎng)站建設(shè)哪家好?成都創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)十載,網(wǎng)設(shè)計(jì)領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:余姚等地區(qū)。余姚做網(wǎng)站價(jià)格咨詢:13518219792
java.lang.Object
|---ohos.agp.components.DragInfo
public class DragInfo
extends Object存儲(chǔ)識(shí)別的拖動(dòng)手勢(shì)的數(shù)據(jù)。
此類存儲(chǔ)特定于已識(shí)別的拖動(dòng)手勢(shì)的數(shù)據(jù),并通過(guò)回調(diào)函數(shù)返回?cái)?shù)據(jù)。
字段摘要
| 修飾符和類型 | 字段 | 描述 |
|---|---|---|
| Point | downPoint | 表示手指觸摸屏幕位置的坐標(biāo)。 |
| Point | startPoint | 指示手指開(kāi)始拖動(dòng)的位置的坐標(biāo)。 |
| Point | updatePoint | 指示手指拖動(dòng)時(shí)更新位置的坐標(biāo)。 |
| double | xOffset | 表示水平偏移。 |
| double | xVelocity | 表示水平拖動(dòng)的速度,以像素/秒為單位。 |
| double | yOffset | 表示垂直偏移。 |
| double | yVelocity | 表示垂直拖動(dòng)的速度,以像素/秒為單位。 |
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| DragInfo(Point downPoint, Point startPoint, Point updatePoint, double xOffset, double yOffset, double xVelocity, double yVelocity) | 創(chuàng)建拖動(dòng)手勢(shì)的信息。 |
方法總結(jié)
| 從類 java.lang.Object 繼承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段詳細(xì)信息
downPoint
public final Point downPoint
表示手指觸摸屏幕位置的坐標(biāo)。
startPoint
public final Point startPoint
指示手指開(kāi)始拖動(dòng)的位置的坐標(biāo)。
一旦識(shí)別出拖動(dòng)手勢(shì),則將手指按下的位置視為起點(diǎn)。
updatePoint
public final Point updatePoint
指示手指拖動(dòng)時(shí)更新位置的坐標(biāo)。 一旦觸發(fā)拖動(dòng)事件,則將拖動(dòng)過(guò)程中手指的當(dāng)前位置視為更新位置。
xOffset
public final double xOffset
表示水平偏移。
與之前的水平拖動(dòng)相比,獲得了水平偏移。
xVelocity
public final double xVelocity
表示水平拖動(dòng)的速度,以像素/秒為單位。
yOffset
public final double yOffset
表示垂直偏移。
與之前的垂直拖動(dòng)相比,得到垂直偏移量。
yVelocity
public final double yVelocity
表示垂直拖動(dòng)的速度,以像素/秒為單位。
構(gòu)造函數(shù)詳細(xì)信息
DragInfo
public DragInfo(Point downPoint, Point startPoint, Point updatePoint, double xOffset, double yOffset, double xVelocity, double yVelocity)
創(chuàng)建拖動(dòng)手勢(shì)的信息。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| downPoint | 表示手指觸摸屏幕位置的坐標(biāo)。 |
| startPoint | 指示手指開(kāi)始拖動(dòng)的位置的坐標(biāo)。 |
| updatePoint | 指示手指拖動(dòng)時(shí)更新位置的坐標(biāo)。 |
| xOffset | 表示水平偏移,以像素為單位。 |
| yOffset | 表示垂直偏移,以像素為單位。 |
| xVelocity | 表示水平速度,以像素/秒為單位。 |
| yVelocity | 表示垂直速度,以像素/秒為單位。 |
網(wǎng)站名稱:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSDragInfo
地址分享:http://m.5511xx.com/article/ccedihi.html


咨詢
建站咨詢
